Spread for ASP.NET 9.0 Product Documentation
ResetAll Method (Appearance)
Example 


Resets all the property settings of the Appearance class to their default values.
Syntax
'Declaration
 
Public Overridable Sub ResetAll() 
'Usage
 
Dim instance As Appearance
 
instance.ResetAll()
public virtual void ResetAll()
Remarks

Use this method to reset all of the appearance properties. For a list of the properties, see the AppearanceProperty class list of members.

To reset any of them individually, use the Reset method.

Example
This example creates a new Appearance object, sets the background and foreground colors and then Resets the properties to their default values.
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
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Appearance Class
Appearance Members
Reset Method

 

 


Copyright © GrapeCity, inc. All rights reserved.