Spread Windows Forms 7.0 Product Documentation
IsEmpty Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > ISheetAxisModel Interface : IsEmpty Method


Glossary Item Box

Determines whether there are no rows and columns in the model.

Syntax

Visual Basic (Declaration) 
Function IsEmpty() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ISheetAxisModel
Dim value As Boolean
 
value = instance.IsEmpty()
C# 
bool IsEmpty()

Return Value

Boolean: true if the sheet contains no rows or columns; false otherwise

Example

This example returns whether there are any columns in the spreadsheet.
C#Copy Code
FarPoint.Win.Spread.Model.ISheetAxisModel isa;
isa = (FarPoint.Win.Spread.Model.ISheetAxisModel)fpSpread1.ActiveSheet.Models.ColumnAxis;
label1.Text = "Are there any columns in the spreadsheet = " + isa.IsEmpty().ToString();
Visual BasicCopy Code
Dim isa As FarPoint.Win.Spread.Model.ISheetAxisModel
isa = FpSpread1.ActiveSheet.Models.ColumnAxis
Label1.Text = "Are there any columns in the spreadsheet = " & isa.IsEmpty().ToString()

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.