BCGControlBar Library for .NET
CommandObject Class Members
Fields  Properties  Methods  Events


The following tables list the members exposed by CommandObject.

Public Constructors
 NameDescription
Public ConstructorCommandObject ConstructorInitializes a new instance of the CommandObject class.  
Top
Public Fields
 NameDescription
Public Fieldm_handlers  
Top
Public Properties
 NameDescription
Public PropertyAutoRepeatEnabledSpecifies if the timer for execution of autorepeat commands is enabled.  
Public PropertyBoundsSpecifies the boundaries of the command object.  
Public PropertyCheckableSpecifies if the command object can get a check state.  
Public PropertyCheckedGets or sets a value indicating whether the command object is in the checked state.  
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyCustomLayoutSpecifies if the size and location of the command object is defined by user and this object will not be resized and moved on calling function AdjustLayout of the parent command panel.  
Public PropertyEnabledGets or sets a value indicating whether the command object can respond to user interaction.  
Public PropertyExplicitDisposeThis property has no default implementation. Override this property in the derived class to specify if the command object should be destroy on removing the parent command panel. In BCGControlBar.NET library this property is used in destructor of the PopupMenuBar class to specify if  its child menu items should be removed.  
Public PropertyHidden  
Public PropertyHighlightedIndicates a value if the command object is highlighted.  
Public PropertyIDGets or sets the ID value that uniquely identifies the command associated with the command object.  
Public PropertyIsDialogControlSpecifies if the command object should be redrawn as a dialog control.  
Public PropertyIsHorizontalSpecifies the orientation of the command object.  
Public PropertyIsSeparatorIndicates a value if the command object is a separator.  
Public PropertyLocation

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its parent command panel.

 
Public PropertyMarginGets or sets the space between command objects on the command panel.  
Public PropertyPressedGets a value indicating whether the state of the CommandObject is pressed.  
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertyVisibleGets or sets a value indicating whether the command object is displayed.  
Public PropertyVisualStyleSpecifies the visual style of the command object.  
Public PropertyWidth

Gets or sets the width of the command object.

 
Public PropertyWrapSpecifies if the command object should be located first at the row below.  
Top
Protected Properties
Public Methods
 NameDescription
Public MethodCopyBaseHandlers  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDisposeOverloaded. Overridden.   
Public MethodFire_PropertyChangedRaises PropertyChanged event  which occurs when a property value changes.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodGetSubItems  
Public MethodInitComplete  
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodIsItemCollectionVisibleIn default implementation the function returns false. You  can override this function in the derived class to indicate a value if the command object has a popup menu items' collection and this items are visible.  In BCGControlBar.NET library this function is overridden in class ToolBarMenuButton to specify the visibility of the related popup menu.  
Public MethodOnCalculateSizeCalled by the framework to calculate the size of the command object. In default implementation this function  returns the value from parameter "sizeDefault".  
Public MethodOnDrawDraws a command object on the specified graphics with a specified boundaries.  
Public MethodOnMouseDown

Raises the MouseDown event which occurs when  the mouse pointer is over the command object and a mouse button is pressed.

 
Public MethodOnMouseUpRaises the MouseUp event  which occurs  when the mouse pointer is over the ColorPanel and a mouse button is released.  
Public Methodraise_DrawCommandObject  
Public Methodraise_PropertyChanged  
Public Methodraise_RedrawCommandObject  
Public MethodRedrawThis function has no default implementation. You can override this function in the derived class to redraw the object of this class.  
Public MethodToString (Inherited from System.ComponentModel.Component)
Public MethodUpdateParentPanelRedraws a part of the parent panel.  
Top
Protected Methods
 NameDescription
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnDrawCommandObject  
Protected MethodOnPropertyChanged  
Protected MethodOnRedraw  
Top
Public Events
 NameDescription
Public EventDisposed (Inherited from System.ComponentModel.Component)
Public EventDrawCommandObjectOccurs on redrawing of the command object.  
Public EventPropertyChangedOccurs when a property value changes.  
Public EventRedrawCommandObject  
Top
See Also

Reference

CommandObject Class
BCGSoft.Controls.Shared Namespace

Send Feedback