Spread Windows Forms 6.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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