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


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetStyleInfo Method : GetStyleInfo(Int32,Int32,SheetArea) Method
The row index.
The column index.
The sheet area.
Gets the style information of the specified cell, row, or column.
Syntax
'Declaration
 
Public Overloads Overridable Function GetStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea _
) As StyleInfo
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim sheetArea As SheetArea
Dim value As StyleInfo
 
value = instance.GetStyleInfo(row, column, sheetArea)
public virtual StyleInfo GetStyleInfo( 
   int row,
   int column,
   SheetArea sheetArea
)

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.

Return Value

The style information of the specified cell, row, or column.
Exceptions
ExceptionDescription
The sheet area cannot be found.
The row index must be between 0 and the row count of the block.
The column index must be between 0 and the column count of the block.
Example
This example uses the GetStyleInfo method.
var style = new GrapeCity.Xaml.SpreadSheet.Data.StyleInfo();
style.Background = new SolidColorBrush(Windows.UI.Colors.Blue);
style.Name = "CellStyle";
gcSpreadSheet1.Sheets[0].NamedStyles.Add(style);
gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "CellStyle";
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleInfo(0, 0).Name.ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleInfo(0,0,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).Background.ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleName(0, 0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
Dim style As New GrapeCity.Xaml.SpreadSheet.Data.StyleInfo()
style.Background = New SolidColorBrush(Windows.UI.Colors.Blue)
style.Name = "CellStyle"
GcSpreadSheet1.Sheets(0).NamedStyles.Add(style)
GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "CellStyle"
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleInfo(0, 0).Name.ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleInfo(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).Background.ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleName(0, 0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetStyleName(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List