Spread Windows Forms 12.0 Product Documentation
GetStyleInfo(Int32,Int32) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > GetStyleInfo Method : GetStyleInfo(Int32,Int32) Method
Row index
Column index
Gets the style information for a specified cell on this sheet.
Syntax
'Declaration
 
Public Overloads Overridable Function GetStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As StyleInfo
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As StyleInfo
 
value = instance.GetStyleInfo(row, column)
public virtual StyleInfo GetStyleInfo( 
   int row,
   int column
)

Parameters

row
Row index
column
Column index

Return Value

StyleInfo object containing the composite style information for the cell
Remarks
This method creates and returns a new StyleInfo object. If you want to pass in a StyleInfo object to use, use the GetStyleInfo(Int32,Int32,StyleInfo) method.
Example
FarPoint.Win.Spread.SheetView sv;
FarPoint.Win.Spread.StyleInfo si;
FarPoint.Win.Spread.StyleInfo si2;
si.BackColor = Color.LightBlue;
sv = fpSpread1.ActiveSheet;
sv.SetStyleInfo(0, 0, si);
si2 = fpSpread1.ActiveSheet.GetStyleInfo(0, 0);
MessageBox.Show("The backcolor of the style info is " + si2.BackColor.ToString());
Dim sv As FarPoint.Win.Spread.SheetView
Dim si As New FarPoint.Win.Spread.StyleInfo
Dim si2 As FarPoint.Win.Spread.StyleInfo
si.BackColor = Color.LightBlue
sv = FpSpread1.ActiveSheet
sv.SetStyleInfo(0, 0, si)
si2 = FpSpread1.ActiveSheet.GetStyleInfo(0, 0)
MessageBox.Show("The backcolor of the style info is " & si2.BackColor.ToString())
See Also

Reference

SheetView Class
SheetView Members
Overload List