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


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetActualStyleInfo Method : GetActualStyleInfo(Int32,Int32,SheetArea,Boolean) Method
The row index.
The column index.
The sheet area.
If true, the row filter and the conditional format style are not applied to the return style; otherwise, the return style only contains cell's inherited style.
Gets the actual style information for a specified cell in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Overridable Function GetActualStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea, _
   ByVal sheetStyleOnly As Boolean _
) As StyleInfo
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim sheetArea As SheetArea
Dim sheetStyleOnly As Boolean
Dim value As StyleInfo
 
value = instance.GetActualStyleInfo(row, column, sheetArea, sheetStyleOnly)
public virtual StyleInfo GetActualStyleInfo( 
   int row,
   int column,
   SheetArea sheetArea,
   bool sheetStyleOnly
)

Parameters

row
The row index.
column
The column index.
sheetArea
The sheet area.
sheetStyleOnly
If true, the row filter and the conditional format style are not applied to the return style; otherwise, the return style only contains cell's inherited style.

Return Value

Returns the cell style of the specified cell.
Example
This example uses the GetActualStyleInfo method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualStyleInfo(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualStyleInfo(0,1,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells,false).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnAutoText(1).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualStyleInfo(0, 0, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualStyleInfo(0,1,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, False).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnAutoText(1).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List