Version

ResetCheckedAppearance Method (UltraMenuItem)

Resets the CheckedAppearance property to its default value.
Syntax
'Declaration
 
Public Sub ResetCheckedAppearance() 
public void ResetCheckedAppearance()
Remarks

Use this method to reset the CheckedAppearance property. If the CheckedAppearance property was set to an Appearance from the Appearances collection, the properties on the Infragistics.Win.AppearanceBase object in the collection will remain the same but the Appearance property will no longer be attached to that Infragistics.Win.AppearanceBase. To reset the properties of the associated Appearance object, the Infragistics.Win.Appearance.Reset method of the Appearance object itself should be invoked instead.

Example
' Each settable property on an Infragistics control or sub-object has an
' associated ResetXXX method (where XXX is the property name)
' that resets the property to its default value.
If Me.myControl.ShouldSerializeFooProp() = True Then
      Me.myControl.ResetFooProp()
End If

If Me.myControl.SubObject.ShouldSerializeBarProp() = True Then
      Me.myControl.SubObject.ResetBarProp()
End If

' Each Infragistics control and sub-object that has a settable property
' also has a Reset method that resets all settable properties to their
' default values.
Me.myControl.Reset()
Me.myControl.SubObject.Reset()
// Each settable property on an Infragistics control or sub-object has an
// associated ResetXXX method (where XXX is the property name)
// that resets the property to its default value.
if (this.myControl.ShouldSerializeFooProp())
      this.myControl.ResetFooProp();
 
if (this.myControl.SubObject.ShouldSerializeBarProp())
      this.myControl.SubObject.ResetBarProp();

// Each Infragistics control and sub-object that has a settable property
// also has a Reset method that resets all settable properties to their
// default values.
this.myControl.Reset();
this.myControl.SubObject.Reset();
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UltraMenuItem Class
UltraMenuItem Members
CheckedAppearance Property
Infragistics.Win.AppearanceBase
Infragistics.Win.AppearanceBase.Reset