Interface IMenu
Represents a UI element that can have any number of child UI elements
Namespace: OSGeo.MapGuide.ObjectModels.WebLayout
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public interface IMenu
Properties
| Improve this Doc View SourceItemCount
Gets the item count.
Declaration
int ItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The item count. |
Items
Gets the items.
Declaration
IEnumerable<IUIItem> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IUIItem> | The items. |
Methods
| Improve this Doc View SourceAddItem(IUIItem)
Adds the item.
Declaration
void AddItem(IUIItem item)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |
GetIndex(IUIItem)
Gets the index of the specified item.
Declaration
int GetIndex(IUIItem item)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |
Returns
Type | Description |
---|---|
System.Int32 |
Insert(IUIItem, Int32)
Inserts the specified item at the specified index.
Declaration
void Insert(IUIItem item, int index)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |
System.Int32 | index | The index. |
MoveDown(IUIItem)
Moves the specified item down.
Declaration
bool MoveDown(IUIItem item)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
MoveUp(IUIItem)
Moves the specified item up.
Declaration
bool MoveUp(IUIItem item)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveItem(IUIItem)
Removes the item.
Declaration
void RemoveItem(IUIItem item)
Parameters
Type | Name | Description |
---|---|---|
IUIItem | item | The item. |