Spread Windows Forms 6.0 Product Documentation
SetStyleInfo Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetStyleInfo Method


row
Row index
column
Column index
info
StyleInfo object

Glossary Item Box

Sets the style for a cell, a column, a row, or an entire sheet.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetStyleInfo( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal info As StyleInfo _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim info As StyleInfo
 
instance.SetStyleInfo(row, column, info)
C# 
public virtual void SetStyleInfo( 
   int row,
   int column,
   StyleInfo info
)

Parameters

row
Row index
column
Column index
info
StyleInfo object

Example

This example illustrates the use of this member by returning the StyleInfo for the specified cell.
C#Copy Code
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
FarPoint.Win.Spread.StyleInfo si2;
si.BackColor = Color.LightBlue;
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si);
si2 = fpSpread1.ActiveSheet.GetStyleInfo(0, 0);
listBox1.Items.Add(si2.BackColor.ToString());
Visual BasicCopy Code
Dim si As New FarPoint.Win.Spread.StyleInfo()
Dim si2 As FarPoint.Win.Spread.StyleInfo
si.BackColor = Color.LightBlue
FpSpread1.ActiveSheet.SetStyleInfo(0, 0, si)
si2 = FpSpread1.ActiveSheet.GetStyleInfo(0, 0)
ListBox1.Items.Add(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.