Version

ResetItemContextMenu Method

Discards any changes made to the default UltraExplorerBarItem context menu and restores it to its original state.
Syntax
'Declaration
 
Public Sub ResetItemContextMenu() 
public void ResetItemContextMenu()
Remarks

The UltraExplorerBarItem context menu is displayed when the user right-clicks on an item.

The default Item context menu can be modified in the ContextMenuInitializing event. This method can be used to discard those changes.

Note: the ShowDefaultContextMenu property must be set to true for the Itemcontext menu to be displayed.

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