Determines whether the model is empty of data.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Function IsEmpty() As Boolean |
C# | |
---|
public override bool IsEmpty() |
Return Value
Boolean:
true if the no styles in the style model;
false otherwise
Example
This example illustrates the use of this member by returning whether any styles exist in the model.
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();
bool b;
defstyleModel = (FarPoint.Win.Spread.Model.DefaultSheetStyleModel)fpSpread1.ActiveSheet.Models.Style;
sInfo.BackColor = Color.LightBlue;
defstyleModel.SetDirectInfo(0, 0, sInfo);
b = defstyleModel.IsEmpty();
listBox1.Items.Add(b.ToString()); |
Visual Basic | Copy Code |
---|
Dim defstyleModel As New FarPoint.Win.Spread.Model.DefaultSheetStyleModel()
Dim sInfo As New FarPoint.Win.Spread.StyleInfo()
Dim b As Boolean
defstyleModel = FpSpread1.ActiveSheet.Models.Style
sInfo.BackColor = Color.LightBlue
defstyleModel.SetDirectInfo(0, 0, sInfo)
b = defstyleModel.IsEmpty()
ListBox1.Items.Add(b.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