Spread for ASP.NET 7.0 Product Documentation
IsPropertySet Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : IsPropertySet Method


prop
SheetStyleProperty class property for which to check setting

Glossary Item Box

Gets whether the specified style property is set.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsPropertySet( _
   ByVal prop As SheetStyleProperty _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As StyleInfo
Dim prop As SheetStyleProperty
Dim value As Boolean
 
value = instance.IsPropertySet(prop)
C# 
public virtual bool IsPropertySet( 
   SheetStyleProperty prop
)

Parameters

prop
SheetStyleProperty class property for which to check setting

Return Value

Boolean: true if property is set; false otherwise

Example

This example creates three objects: two StyleInfo objects and a SheetStyleProperty. The ForeColor and Font properties of the first StyleInfo object are set, and the BackColor of the second. The second object is then merged with the first. Then a boolean value returns whether the BackColor property has, in fact, been set after the merge.
C#Copy Code
FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
FarPoint.Web.Spread.StyleInfo minfo = new FarPoint.Web.Spread.StyleInfo();
minfo.BackColor = Color.Yellow;
info.ForeColor = Color.Red;
info.Font.Bold = true;
info.Merge(minfo);
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info);
bool bol;
bol = info.IsPropertySet(FarPoint.Web.Spread.SheetStyleProperty.BackColor);
ListBox1.Items.Add(Convert.ToString(bol));
Visual BasicCopy Code
Dim info As New FarPoint.Web.Spread.StyleInfo()
Dim minfo As New FarPoint.Web.Spread.StyleInfo()
Dim prop As FarPoint.Web.Spread.SheetStyleProperty
minfo.BackColor = Color.Yellow
info.ForeColor = Color.Red
info.Font.Bold = True
info.Merge(minfo)
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info)
Dim bol As Boolean
bol = info.IsPropertySet(prop.BackColor)
ListBox1.Items.Add(bol)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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