Determines whether the model has no style settings.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Function IsEmpty() As Boolean |
C# | |
---|
public virtual bool IsEmpty() |
Return Value
true if the model has no data;
false otherwise
Remarks
Example
This example returns whether the model has no style settings.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.BaseSheetStyleModel bs;
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo();
si.BackColor = Color.Yellow;
bs = (FarPoint.Web.Spread.Model.BaseSheetStyleModel)FpSpread1.ActiveSheetView.StyleModel;
bs.SetDirectInfo(0, 0, si);
bool b;
b = bs.IsEmpty();
Response.Write(b.ToString());
|
Visual Basic | Copy Code |
---|
Dim bs As FarPoint.Web.Spread.Model.BaseSheetStyleModel
Dim si As New FarPoint.Web.Spread.StyleInfo
si.BackColor = Color.Yellow
bs = FpSpread1.ActiveSheetView.StyleModel
bs.SetDirectInfo(0, 0, si)
Dim b As Boolean
b = bs.IsEmpty()
Response.Write(b.ToString()) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also