Spread for ASP.NET 9.0 Product Documentation
GetStyleInfo Method
Example 


Row index of the cell
Column index of the cell
Gets the composite cell style information for a cell at the specified row and column.
Syntax
'Declaration
 
Public 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 of the cell
column
Column index of the cell

Return Value

StyleInfo object with the style information for the cell
Remarks

To set the style for a cell, use the SetStyleInfo method.

Example
This example returns the border color, one part of the style information, for the sheet.
FarPoint.Web.Spread.SheetView sv;
FarPoint.Web.Spread.Model.StyleInfo si;
sv = FpSpread1.ActiveSheetView;
si = sv.GetStyleInfo(0, 0)
Response.Write("The border color for the style is " + si.Border.BorderColor.ToString())
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
Dim si As FarPoint.Web.Spread.StyleInfo
si = sv.GetStyleInfo(0, 0)
Response.Write("The border color for the style is " & si.Border.BorderColor.ToString())
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
StyleInfo Class
SetStyleInfo Method

User-Task Documentation

Styles for Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.