Spread Windows Forms 7.0 Product Documentation
GetStyleInfo(Int32,Int32) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > GetStyleInfo Method : GetStyleInfo(Int32,Int32) Method


row
Row index
column
Column index

Glossary Item Box

Gets the style information for a specified cell on this sheet.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function GetStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As StyleInfo
 
value = instance.GetStyleInfo(row, column)
C# 
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

C#Copy Code
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());
Visual BasicCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.