Spread Windows Forms 6.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 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

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