Spread ASP.NET 6.0 Product Documentation
IsEmpty Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetStyleModel Class : IsEmpty Method


Glossary Item Box

Determines whether the model has no style settings.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsEmpty() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetStyleModel
Dim value As Boolean
 
value = instance.IsEmpty()
C# 
public virtual bool IsEmpty()

Return Value

true if the model has no data; false otherwise

Remarks

This implementation always returns true.

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 BasicCopy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.