NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MenuItem.MergeOrder

Gets or sets the relative position the menu item when its menu is merged with another.

[Visual Basic]
Public Property MergeOrder As Integer
[C#]
public int MergeOrder {get; set;}
[C++]
public: __property int get_MergeOrder();
public: __property void set_MergeOrder(int);
[JScript]
public function get MergeOrder() : int;
public function set MergeOrder(int);

Property Value

The merge order position for this menu item. The default is 0.

Remarks

The merge order of a menu item specifies the relative position that this menu item will assume if the menu that the menu item is contained in is merged with another.

Example [Visual Basic]

The following example sets the MergeType and MergeOrder for a menu item that is to be added to the merged menu and has a merge order of 1.

[Visual Basic]

Public Sub InitMyFileMenu()
   ' Set the MergeType to Add so that the menu item is added to the merged menu.
   MenuItem1.MergeType = MenuMerge.Add
   ' Set the MergeOrder to 1 so that this menu item is placed lower in the merged menu order.
   MenuItem1.MergeOrder = 1
End Sub

See Also

MenuItem Class | MenuItem Members | System.WinForms Namespace