Determines whether the model is empty of data.
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 checks to see if the contents are empty for a cell in a specified row and column.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.BaseSheetDataModel bdm;
bool b;
bdm = (FarPoint.Web.Spread.Model.BaseSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
bdm.SetValue(0, 0, "Test Emptiness");
b = bdm.IsEmpty(0, 0);
Response.Write("The cell is empty is " + b.ToString());
|
Visual Basic | Copy Code |
---|
Dim bdm As FarPoint.web.Spread.Model.BaseSheetDataModel
Dim b As Boolean
bdm = FpSpread1.ActiveSheetView.DataModel
bdm.SetValue(0, 0, "Test Emptiness")
b = bdm.IsEmpty(0, 0)
Response.Write("The cell is empty is " & 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