BarCustomControlCommand Class
Represents a bar custom control command.
public abstract class BarCustomControlCommand : BarCommand, IImageListProvider
- Inheritance:
- object Command BarCommand object
- Derived:
- BarComboBoxCommand BarTextBoxCommand
- Implements:
- IImageListProvider
Constructors
BarCustomControlCommand(string, string, string, int)
Initializes a new instance of the BarCustomControlCommand
class.
public BarCustomControlCommand(string category, string name, string text, int imageIndex)
Parameter | Type | Description |
---|---|---|
category | string | The category of the bar command. |
name | string | The name of the bar command. |
text | string | The text caption. |
imageIndex | int | The index of an image within an |
Properties
ControlValue
Gets or sets the string value of the custom control.
public virtual string ControlValue { get; set; }
Property Value
- string:
The string value of the custom control.
SupportsVerticalDisplay
Gets whether the bar command supports a vertical display.
protected override sealed bool SupportsVerticalDisplay { get; }
Property Value
- bool:
true
if the bar command supports a vertical display; otherwise,false
.
Width
Gets or sets the width of the control.
Methods
CloneToType(Type)
Creates a copy of the BarCommand.
protected override BarCommand CloneToType(Type targetType)
Parameter | Type | Description |
---|---|---|
targetType | Type | The target Type. |
Returns
- BarCommand:
The copy of the BarCommand.
ReadAttributesFromXml(BarLayoutXmlSerializer)
Deserializes the attribute data for the BarCommandLink from XML.
protected override void ReadAttributesFromXml(BarLayoutXmlSerializer serializer)
Parameter | Type | Description |
---|---|---|
serializer | BarLayoutXmlSerializer | The BarLayoutXmlSerializer to use. |
ResetControlValue()
Resets the ControlValue property to its default value.
public virtual void ResetControlValue()
ResetTextVisibleOnToolBars()
Resets the ActiproSoftware.UI.WinForms.Controls.Bars.BarCustomControlCommand.TextVisibleOnToolBars property to its default value.
public virtual void ResetTextVisibleOnToolBars()
ResetWidth()
Resets the Width property to its default value.
public virtual void ResetWidth()
ShouldSerializeControlValue()
Indicates whether the ControlValue property should be persisted.
public virtual bool ShouldSerializeControlValue()
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeTextVisibleOnToolBars()
Indicates whether the ActiproSoftware.UI.WinForms.Controls.Bars.BarCustomControlCommand.TextVisibleOnToolBars property should be persisted.
public virtual bool ShouldSerializeTextVisibleOnToolBars()
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeWidth()
Indicates whether the Width property should be persisted.
public virtual bool ShouldSerializeWidth()
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
WriteAttributesToXml(BarLayoutXmlSerializer)
Serializes the attribute data for the BarCommand to XML.
protected override void WriteAttributesToXml(BarLayoutXmlSerializer serializer)
Parameter | Type | Description |
---|---|---|
serializer | BarLayoutXmlSerializer | The BarLayoutXmlSerializer to use. |
Events
ControlValueChanged
Occurs when the ControlValue property is changed.
Inherited Members
- BarCommand.ResetCanCustomizeCreate()
- BarCommand.ShouldSerializeCanCustomizeCreate()
- BarCommand.ResetCanCustomizeKeyboardShortcuts()
- BarCommand.ShouldSerializeCanCustomizeKeyboardShortcuts()
- BarCommand.ResetCategory()
- BarCommand.ShouldSerializeCategory()
- BarCommand.CreateCommandLink()
- BarCommand.ResetCustomizeListText()
- BarCommand.ShouldSerializeCustomizeListText()
- BarCommand.ResetEnabled()
- BarCommand.ShouldSerializeEnabled()
- BarCommand.ResetImage()
- BarCommand.ShouldSerializeImage()
- BarCommand.ResetImageIndex()
- BarCommand.ShouldSerializeImageIndex()
- BarCommand.OnEnabledChanged(EventArgs)
- BarCommand.OnProcessingRequested(BarProcessEventArgs)
- BarCommand.Process(BarProcessEventArgs)
- BarCommand.ReadElementFromXml(BarLayoutXmlSerializer)
- BarCommand.ResetStaysOpenOnClick()
- BarCommand.ShouldSerializeStaysOpenOnClick()
- BarCommand.ResetText()
- BarCommand.ShouldSerializeText()
- BarCommand.ResetToolTipEnabled()
- BarCommand.ShouldSerializeToolTipEnabled()
- BarCommand.ResetToolTipText()
- BarCommand.ShouldSerializeToolTipText()
- BarCommand.UpdateState(BarCommandLinkEventArgs)
- BarCommand.WriteElementsToXml(BarLayoutXmlSerializer)
- BarCommand.BarManager
- BarCommand.CanCustomizeCreate
- BarCommand.CanCustomizeKeyboardShortcuts
- BarCommand.Category
- BarCommand.CustomizeListText
- BarCommand.Enabled
- BarCommand.FullName
- BarCommand.Image
- BarCommand.ImageIndex
- BarCommand.KeyboardShortcuts
- BarCommand.StaysOpenOnClick
- BarCommand.Tag
- BarCommand.Text
- BarCommand.ToolTipEnabled
- BarCommand.ToolTipText
- BarCommand.EnabledChanged
- BarCommand.ProcessingRequested
- Command.Name
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()