FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Appearance Class : Reset Method |
'Declaration Public Overridable Sub Reset( _ ByVal prop As AppearanceProperty _ )
'Usage Dim instance As Appearance Dim prop As AppearanceProperty instance.Reset(prop)
public virtual void Reset( AppearanceProperty prop )
Use this method to reset one of the appearance properties. For a list of the properties, see the AppearanceProperty class list of members.
To reset all the appearance properties, use the ResetAll method.
FarPoint.Web.Spread.Appearance appearance = new FarPoint.Web.Spread.Appearance(); appearance.BackColor = Color.Red; appearance.ForeColor = Color.Blue; private void Button1_Click(object sender, System.EventArgs e) { appearance.Reset(AppearanceProperty.BackColor); System.Diagnostics.Debug.Assert(Not appearance.IsDefined(AppearanceProperty.BackColor)); appearance.ResetAll(); System.Diagnostics.Debug.Assert(Not appearance.IsDefined(AppearanceProperty.ForeColor)); }
Dim appearance As New Appearance() appearance.BackColor = Color.Red appearance.ForeColor = Color.Blue Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click appearance.Reset(AppearanceProperty.BackColor) System.Diagnostics.Debug.Assert(Not appearance.IsDefined(AppearanceProperty.BackColor)) appearance.ResetAll() System.Diagnostics.Debug.Assert(Not appearance.IsDefined(AppearanceProperty.ForeColor)) End Sub
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