The following tables list the members exposed by ICommandObject.
Public Properties
| Name | Description |
 | AutoRepeatEnabled | If this property is set to true, the framework automatically sends "execute command" events by timer. |
 | Bounds | Specifies object's bounding rectangle. |
 | Checkable | Specifies whether the object may have "checked" state. |
 | Checked | Specifies checked state. |
 | CustomLayout | |
 | Enabled | Tells whether the object is enabled, or disabled. |
 | Hidden | Specifies whether the object is hidden or not. This flag is set when an objec is visible, but doesn't fit the parent command bar's client area (for example, if the parent command bar is stretched). The object will be shown as soon as the parent is expanded and has enough place to display the object. |
 | Highlighted | Specifies whether the command object is highlighted, or not. |
 | ID | Specifies command object ID. For the most of objects identifiers are managed (assigned) automatically by the framework. You can use IDs to quickly identify objects without using strings. |
 | IsDialogControl | Specifies whether the object should be drawn using the standard Office XP theme (which usually required, when an object is placed on dialog form). |
 | IsHorizontal | Thells whether the object is placed on horizontal, or vertical command bar (for example, a toolbar can be dicked horizontally or vertically). |
 | IsSeparator | Specifiers whether the object is separator. |
 | Margin | |
 | Pressed | Specifies whether the object is pressed. |
 | Visible | Specifies whether the object is visible, or not. |
 | Wrap | Specifies whether the object is a wrap point, or not. If the object is a wrap point, next object in the parent collection is placed on the next line. |
Top
Public Methods
| Name | Description |
 | GetSubItems | |
 | OnCalculateSize | Calculates and returns object size. |
 | OnDraw | Renders the obect within provided bounding rectange on the specifies Graphics context. |
 | OnMouseDown | Called by the framework to allow the object to process mouse events. Shoud return true if the mouse event has been processed and no further processing is required. |
 | OnMouseUp | Called by the framework to allow the object to process mouse events. Shoud return true if the mouse event has been processed and no further processing is required. |
Top
See Also