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


Glossary Item Box

Determines whether none of the properties of the Appearance object is set.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property IsEmpty As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Appearance
Dim value As Boolean
 
value = instance.IsEmpty
C# 
public virtual bool IsEmpty {get;}

Property Value

Boolean: true if no appearance properties are set; false otherwise

Remarks

This property is available at run time only.

Example

C#Copy Code
private void ChangeCellColor(FarPoint.Web.Spread.FpSpread s, FarPoint.Web.Spread.Cell c, FarPoint.Web.Spread.Appearance a)
{
    s.ActiveSheetView.Cells[c.Row.Index, c.Column.Index].BackColor = a.BackColor;
}

FarPoint.Web.Spread.Appearance appr = new FarPoint.Web.Spread.Appearance();
appr.BackColor = Color.Red;
bool b;
FarPoint.Web.Spread.Appearance appr1 = new FarPoint.Web.Spread.Appearance(appr);
FarPoint.Web.Spread.Cell c;
c = FpSpread1.ActiveSheetView.Cells[1, 1];
ChangeCellColor(FpSpread1, c, appr1);
b = appr.IsEmpty();
TextBox1.Text = b.ToString();
Visual BasicCopy Code
Private Sub ChangeCellColor(ByVal s As FarPoint.Web.Spread.FpSpread, ByVal c As FarPoint.Web.Spread.Cell, ByVal a As FarPoint.Web.Spread.Appearance)
    s.ActiveSheetView.Cells(c.Row.Index, c.Column.Index).BackColor = a.BackColor
End Sub

Dim appr As New FarPoint.Web.Spread.Appearance
appr.BackColor = Color.Red
Dim b As Boolean
Dim appr1 As New FarPoint.Web.Spread.Appearance(appr)
Dim c As FarPoint.Web.Spread.Cell
c = FpSpread1.ActiveSheetView.Cells(1, 1)
ChangeCellColor(FpSpread1, c, appr)
b = appr.IsEmpty()
TextBox1.Text = 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.