Spread Windows Forms 12.0 Product Documentation
IsPropertySet Method (StyleInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > StyleInfo Class : IsPropertySet Method
SheetStyleProperty object
Gets whether the specified cell style setting (property) is set.
Syntax
'Declaration
 
Public Overridable Function IsPropertySet( _
   ByVal styleProperty As SheetStyleProperty _
) As Boolean
'Usage
 
Dim instance As StyleInfo
Dim styleProperty As SheetStyleProperty
Dim value As Boolean
 
value = instance.IsPropertySet(styleProperty)
public virtual bool IsPropertySet( 
   SheetStyleProperty styleProperty
)

Parameters

styleProperty
SheetStyleProperty object

Return Value

Boolean: true if the property is set; false otherwise
Example
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
bool b;
si.Parent = "DataAreaDefault";
fpSpread1.ActiveSheet.DefaultStyle = si;
b = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.Parent);
label1.Text = b.ToString();
Dim si As New FarPoint.Win.Spread.StyleInfo
Dim b As Boolean
si.Parent = "DataAreaDefault"
fpSpread1.ActiveSheet.DefaultStyle = si
b = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.Parent)
Label1.Text = b.ToString()
See Also

Reference

StyleInfo Class
StyleInfo Members