Spread for ASP.NET 11 Product Documentation
IsEmpty Property (Inset)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Inset Class : IsEmpty Property
Determines whether none of the margins are set (whether the values are all zero).
Syntax
'Declaration
 
Public Overridable ReadOnly Property IsEmpty As Boolean
'Usage
 
Dim instance As Inset
Dim value As Boolean
 
value = instance.IsEmpty
public virtual bool IsEmpty {get;}

Property Value

true if empty; false otherwise
Remarks
This property is available at run time only.
Example
This example returns whether the inset is empty.
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset(); 
inset.Left = 35; 
inset.Top = 5; 
inset.Right = 5; 
inset.Bottom = 35; 
FpSpread1.ActiveSheetView.Cells(0, 0).Margin = inset; 
bool b;
b = inset.IsEmpty();
Response.Write(b.ToString());
Dim inset As New FarPoint.Web.Spread.Inset
inset.Left = 35
inset.Top = 5
inset.Right = 5
inset.Bottom = 35
FpSpread1.ActiveSheetView.Cells(0, 0).Margin = inset
Dim b As Boolean
b = inset.IsEmpty()
Response.Write(b.ToString())
See Also

Reference

Inset Class
Inset Members