Gets the style information of the specified cell, row, or column.
'Declaration
Public Overloads Overridable Function GetStyleInfo( _
ByVal As System.Integer, _
ByVal column As System.Integer, _
ByVal As SheetArea _
) As StyleInfo
'Usage
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim sheetArea As SheetArea
Dim value As StyleInfo
value = instance.GetStyleInfo(row, column, sheetArea)
public virtual StyleInfo GetStyleInfo(
System.int ,
System.int column,
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.
This example uses the GetStyleInfo method.
var style = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo();
style.Background = new SolidColorBrush(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.Windows.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.Windows.SpreadSheet.Data.SheetArea.Cells).ToString());
Dim style As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo()
style.Background = New SolidColorBrush(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.Windows.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.Windows.SpreadSheet.Data.SheetArea.Cells).ToString())
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