Spread ASP.NET 6.0 Product Documentation
SetStyleInfo Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetStyleInfo Method


row
Row index
column
Column index
info
StyleInfo object with cell style settings

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 with cell style settings

Remarks

Use this method to specify the cell style for a cell, a column, a row, or the entire sheet. Set the column and row parameters as follows to set the style:

To set the style    
for a . . .
col setting         row setting    
Cell Column index Row index
Column Column index -1
Row -1 Row index
Sheet -1 -1

Use the GetStyleInfo method to return the style for a cell.

Example

This example illustrates the use of this member by setting the style for the specified cell.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo();
si.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Red);
sv = FpSpread1.ActiveSheetView;
sv.SetStyleInfo(0, 0, si);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim si As New FarPoint.Web.Spread.StyleInfo
si.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Red)
sv = FpSpread1.ActiveSheetView
sv.SetStyleInfo(0, 0, si)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.