'Declaration Public Overridable Sub SetStyleInfo( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal info As StyleInfo _ )
Parameters
- row
- Row index
- column
- Column index
- info
- StyleInfo object with cell style settings
'Declaration Public Overridable Sub SetStyleInfo( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal info As StyleInfo _ )
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.
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);
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)