Spread Silverlight Documentation
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 System.Integer, _
   ByVal column As System.Integer, _
   ByVal sheetArea As SheetArea, _
   ByVal style As StyleInfo _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim sheetArea As SheetArea
Dim style As StyleInfo
 
instance.SetStyleInfo(row, column, sheetArea, style)
public void SetStyleInfo( 
   System.int row,
   System.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.Windows.SpreadSheet.Data.StyleInfo aaa = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
aaa.Background = new SolidColorBrush(System.Windows.Media.Colors.Green);
aaa.Name = "aaa";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(aaa);
gcSpreadSheet1.Sheets[0].SetStyleInfo(-1, -1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, aaa);
Dim aaa As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
aaa.Background = New SolidColorBrush(System.Windows.Media.Colors.Green)
aaa.Name = "aaa"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(aaa)
GcSpreadSheet1.Sheets(0).SetStyleInfo(-1, -1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, aaa)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.