Sets the direct style for the specified cell, column, row, or model default.
Syntax
Parameters
- row
- Model row index of the cell, or -1 to specify a column or model default
- column
- Model column index of the cell, or -1 to specify a row or model default
- info
- Style object set (StyleInfo or NamedStyle)
Exceptions
Remarks
Example
This example sets and returns the information for the specified cell.
C# | Copy Code |
---|
FarPoint.Win.Spread.Model.DefaultSheetStyleModel defstyleModel = new FarPoint.Win.Spread.Model.DefaultSheetStyleModel();
FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo();
FarPoint.Win.Spread.StyleInfo direct = new FarPoint.Win.Spread.StyleInfo();
defstyleModel = (FarPoint.Win.Spread.Model.DefaultSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
sInfo.BackColor = Color.LightBlue;
defstyleModel.SetDirectInfo(0, 0, sInfo);
direct = defstyleModel.GetDirectInfo(0, 0, sInfo);
listBox1.Items.Add(direct.BackColor.ToString()); |
Visual Basic | Copy Code |
---|
Dim defstyleModel As New FarPoint.Win.Spread.Model.DefaultSheetStyleModel()
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
Dim direct As New FarPoint.Win.Spread.StyleInfo()
defstyleModel = FpSpread1.ActiveSheet.Models.Style
sInfo.BackColor = Color.LightBlue
defstyleModel.SetDirectInfo(0, 0, sInfo)
direct = defstyleModel.GetDirectInfo(0, 0, sInfo)
ListBox1.Items.Add(direct.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