Spread Windows Forms 6.0 Product Documentation
IsEmpty Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetStyleModel Class : IsEmpty Method


Glossary Item Box

Determines whether the model is empty of data.

Syntax

Visual Basic (Declaration) 
Public Overrides Function IsEmpty() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetStyleModel
Dim value As Boolean
 
value = instance.IsEmpty()
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 BasicCopy 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

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