BCGControlBar Library for .NET
CommandObject Class
Members 




Inherits from Component of namespace  System.ComponentModel. Implements interfaces ICommandObject, INotifyPropertyChanged.
Represents a base class for the Command button. Has a set of properties related to the state of the command object. 

Object Model
CommandObject Class
Syntax
'Declaration
 
Public Class CommandObject 
   Inherits System.ComponentModel.Component
   Implements ICommandObject 
'Usage
 
Dim instance As CommandObject
public class CommandObject : System.ComponentModel.Component, ICommandObject  
public __gc class CommandObject : public System.ComponentModel.Component, ICommandObject  
public ref class CommandObject : public System.ComponentModel.Component, ICommandObject  
Remarks

Property Bounds get or set the size and location of the button. Property Checkable indicates if the button can be checked. Property Checked specifies if the button is checked now. Property Enabled indicates whether the control can respond to user interaction. The highlighting mode defines by the highlighted property. The ID property displays the identification of the command object on the command panel. Property IsDialogControl indicates if the CommandObject represents a dialog control. Property IsHorizontal indicates if the command object is located horizontally. To define if the CommandObject is a separator button you have to use property IsSeparator. The Location property  specifies the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. Margin property represents the margin information associated with a control. Property Pressed specifies press state of the command object. Property Visible specifies the visibility of the command object. VisualStyle of the command object can be defined by property Visual Style.  When the property of the command object is changed the PropertyChange event will be raised.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         BCGSoft.Controls.Shared.CommandObject
            BCGSoft.ControlBars.FrameCaptionButton
            BCGSoft.ControlBars.Ribbon.RibbonContextCategoryGroup
            BCGSoft.Controls.Shared.ColorObject
            BCGSoft.Controls.Shared.CommandButton

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandObject Members
BCGSoft.Controls.Shared Namespace

Send Feedback