BCGControlBar Library for .NET
ICommandObject Interface Members
Properties  Methods 

The following tables list the members exposed by ICommandObject.

Public Properties
 NameDescription
 PropertyAutoRepeatEnabledIf this property is set to true, the framework automatically sends "execute command" events by timer.  
 PropertyBoundsSpecifies object's bounding rectangle.  
 PropertyCheckableSpecifies whether the object may have "checked" state.  
 PropertyCheckedSpecifies checked state.  
 PropertyCustomLayout  
 PropertyEnabledTells whether the object is enabled, or disabled.  
 PropertyHiddenSpecifies 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.  
 PropertyHighlightedSpecifies whether the command object is highlighted, or not.  
 PropertyIDSpecifies 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.  
 PropertyIsDialogControlSpecifies whether the object should be drawn using the standard Office XP theme (which usually required, when an object is placed on dialog form).  
 PropertyIsHorizontalThells whether the object is placed on horizontal, or vertical command bar (for example, a toolbar can be dicked horizontally or vertically).  
 PropertyIsSeparatorSpecifiers whether the object is separator.  
 PropertyMargin  
 PropertyPressedSpecifies whether the object is pressed.  
 PropertyVisibleSpecifies whether the object is visible, or not.  
 PropertyWrapSpecifies 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
 NameDescription
 MethodGetSubItems  
 MethodOnCalculateSizeCalculates and returns object size.  
 MethodOnDrawRenders the obect within provided bounding rectange on the specifies Graphics context.  
 MethodOnMouseDownCalled 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.  
 MethodOnMouseUpCalled 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

Reference

ICommandObject Interface
BCGSoft.Controls.Shared Namespace

Send Feedback