Version

ResetNavigationContextMenu Method

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

The navigation context menu is displayed when the user right-clicks on a Group header when the control style is '3 - OutlookNavigationPane'.

The default navigation context menu can be modified in the NavigationContextMenuInitializing event.

Note: the ShowDefaultContextMenu property must be set to true for the navigation context 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