Spread ASP.NET 6.0 Product Documentation
Reset Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Appearance Class : Reset Method


prop
AppearanceProperty object containing the appearance property

Glossary Item Box

Resets the setting of the specified appearance property to its default value.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Reset( _
   ByVal prop As AppearanceProperty _
) 
Visual Basic (Usage)Copy Code
Dim instance As Appearance
Dim prop As AppearanceProperty
 
instance.Reset(prop)
C# 
public virtual void Reset( 
   AppearanceProperty prop
)

Parameters

prop
AppearanceProperty object containing the appearance property

Remarks

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.

Example

This example creates a new Appearance object, sets the background and foreground colors and then Resets the properties to their default values.
C#Copy Code
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));
}
Visual BasicCopy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.