FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : IsPropertySet Method |
'Declaration Public Overridable Function IsPropertySet( _ ByVal prop As SheetStyleProperty _ ) As Boolean
'Usage Dim instance As StyleInfo Dim prop As SheetStyleProperty Dim value As Boolean value = instance.IsPropertySet(prop)
public virtual bool IsPropertySet( SheetStyleProperty prop )
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));
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)
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional