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


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())
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.