GrapeCity.Xaml.SpreadSheet.Data
SetStyleInfo(Int32,Int32,SheetArea,StyleInfo) Method
Example 


The row index.
The column index.
The sheet area.
The style.
Sets the style for the specified cell, row, or column of the specified area.
Syntax
'Declaration
 
Public Overloads Sub SetStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea, _
   ByVal style As StyleInfo _
) 
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim sheetArea As SheetArea
Dim style As StyleInfo
 
instance.SetStyleInfo(row, column, sheetArea, style)
public void SetStyleInfo( 
   int row,
   int column,
   SheetArea sheetArea,
   StyleInfo style
)

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.
style
The style.
Exceptions
ExceptionDescription
System.ArgumentExceptionThe sheet area cannot be found.
System.IndexOutOfRangeException The row index must be between 0 and the block row count.
System.IndexOutOfRangeException The column index must be between 0 and the block column count .
Example
This example uses the SetStyleInfo method.
GrapeCity.Xaml.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
aaa.Background = new SolidColorBrush(Windows.UI.Colors.Colors.Green);
aaa.Name = "aaa";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa);
gcSpreadSheet1.Sheets[0].SetStyleInfo(-1, -1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, aaa); 
Dim aaa As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
aaa.Background = New SolidColorBrush(Windows.UI.Colors.Green)
aaa.Name = "aaa"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa)
GcSpreadSheet1.Sheets(0).SetStyleInfo(-1, -1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, aaa)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options