BarButtonLink Class
Represents a bar button command link.
[TypeConverter(typeof(BarButtonLinkConverter))]
public class BarButtonLink : BarCommandLink, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IImageListProvider
- Inheritance:
- object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase UIElement BarCommandLink object
- Implements:
- IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IImageListProvider
Constructors
BarButtonLink(BarButtonCommand)
Initializes an instance of the class.
public BarButtonLink(BarButtonCommand command)
| Parameter | Type | Description |
|---|---|---|
| command | BarButtonCommand | The BarCommand upon which the link is based. |
BarButtonLink(string, string, string?, int, bool?, bool?, bool?, bool?)
Initializes an instance of the class, for use in a programmatically created popup menu.
public BarButtonLink(string category, string name, string? text = null, int imageIndex = -1, bool? enabled = null, bool? checkable = null, bool? isChecked = null, bool? beginAGroup = null)
| 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 |
| enabled | bool? | Whether the button is enabled. When |
| checkable | bool? | Whether the button is checkable. When |
| isChecked | bool? | Whether the button is currently checked. When |
| beginAGroup | bool? | Whether to begin a group. When |
Properties
Command
The BarButtonCommand to link to.
Methods
GetDrawState()
The UIElementDrawState for the element.
public override UIElementDrawState GetDrawState()
Returns
Remarks
The default implementation of this method returns None.
OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
protected override void OnMouseDown(MouseEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEventArgs | The event data. |
OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
protected override void OnMouseUp(MouseEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEventArgs | The event data. |
OnRender(PaintEventArgs)
Renders the element.
protected override void OnRender(PaintEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | The event data. |
Inherited Members
- BarCommandLink.ResetBeginAGroup()
- BarCommandLink.ShouldSerializeBeginAGroup()
- BarCommandLink.Clone()
- BarCommandLink.ResetDefaultImage()
- BarCommandLink.ShouldSerializeDefaultImage()
- BarCommandLink.ResetDefaultText()
- BarCommandLink.ShouldSerializeDefaultText()
- BarCommandLink.ResetDisplayStyle()
- BarCommandLink.ShouldSerializeDisplayStyle()
- BarCommandLink.ResetEnabled()
- BarCommandLink.ShouldSerializeEnabled()
- BarCommandLink.GetEnabled()
- BarCommandLink.GetImage()
- BarCommandLink.GetImageSize()
- BarCommandLink.GetMnemonic()
- BarCommandLink.GetText()
- BarCommandLink.GetToolTipText()
- BarCommandLink.ResetImage()
- BarCommandLink.ShouldSerializeImage()
- BarCommandLink.ResetImageIndex()
- BarCommandLink.ShouldSerializeImageIndex()
- BarCommandLink.IsDifferentFromDefault(BarCommandLink)
- BarCommandLink.MeasureOverride(Graphics, Size)
- BarCommandLink.ResetMergeAction()
- BarCommandLink.ShouldSerializeMergeAction()
- BarCommandLink.ResetMergeKey()
- BarCommandLink.ShouldSerializeMergeKey()
- BarCommandLink.OnEnabledChanged(EventArgs)
- BarCommandLink.OnMouseEnter(MouseEventArgs)
- BarCommandLink.OnMouseLeave(MouseEventArgs)
- BarCommandLink.OnIsSelectedChanged(EventArgs)
- BarCommandLink.OnParentChanged()
- BarCommandLink.Process(BarProcessEventArgs)
- BarCommandLink.ProcessKeyDown(Keys)
- BarCommandLink.ReadAttributesFromXml(BarLayoutXmlSerializer)
- BarCommandLink.ReadElementFromXml(BarLayoutXmlSerializer)
- BarCommandLink.ShouldDisplayImage()
- BarCommandLink.ShouldDisplayText()
- BarCommandLink.ResetText()
- BarCommandLink.ShouldSerializeText()
- BarCommandLink.ResetVisible()
- BarCommandLink.ShouldSerializeVisible()
- BarCommandLink.WriteAttributesToXml(BarLayoutXmlSerializer, BarCommandLink)
- BarCommandLink.WriteElementsToXml(BarLayoutXmlSerializer, BarCommandLink)
- BarCommandLink.BarControl
- BarCommandLink.BeginAGroup
- BarCommandLink.CommandCore
- BarCommandLink.DefaultImage
- BarCommandLink.DefaultText
- BarCommandLink.DisplayStyle
- BarCommandLink.Enabled
- BarCommandLink.HasImage
- BarCommandLink.Image
- BarCommandLink.ImageIndex
- BarCommandLink.InvalidateOnMouseEvents
- BarCommandLink.IsClickableInCustomizeMode
- BarCommandLink.IsMergeModified
- BarCommandLink.IsSelected
- BarCommandLink.MergeAction
- BarCommandLink.MergeKey
- BarCommandLink.Mnemonic
- BarCommandLink.ScreenBounds
- BarCommandLink.Tag
- BarCommandLink.Text
- BarCommandLink.Visible
- BarCommandLink.VisibleCore
- UIElement.Dispose(bool)
- UIElement.AddPendingGraphicsInversion(Rectangle)
- UIElement.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIElement.AddPendingScrollOperation(Rectangle, int, int)
- UIElement.Arrange(Rectangle)
- UIElement.ArrangeOverride(Size)
- UIElement.CaptureMouse()
- UIElement.ContainsLocation(Point)
- UIElement.CreateGraphics()
- UIElement.DpiScaleChanged(SizeF)
- UIElement.GetCursor(Point)
- UIElement.Invalidate()
- UIElement.Invalidate(Rectangle)
- UIElement.Invalidate(InvalidationLevels, InvalidationTypes)
- UIElement.InvalidateArrange()
- UIElement.InvalidateMeasure()
- UIElement.Measure(Graphics, Size)
- UIElement.OnClick(MouseEventArgs)
- UIElement.OnDoubleClick(MouseEventArgs)
- UIElement.OnMouseCaptureLost(EventArgs)
- UIElement.OnMouseHover(MouseEventArgs)
- UIElement.OnMouseMove(MouseEventArgs)
- UIElement.OnMouseWheel(MouseEventArgs)
- UIElement.OnRenderChildElements(PaintEventArgs)
- UIElement.OnResize(EventArgs)
- UIElement.PostArrangeOverride()
- UIElement.ReleaseMouseCapture()
- UIElement.Render(PaintEventArgs)
- UIElement.TransformToAncestor(IUIElement)
- UIElement.TransformToDescendant(IUIElement)
- UIElement.UpdateLayout()
- UIElement.ActualHeight
- UIElement.ActualWidth
- UIElement.Bounds
- UIElement.CaptureMouseWhenPressed
- UIElement.ClipBounds
- UIElement.DesiredSize
- UIElement.DpiScaleFactor
- UIElement.IsArrangeValid
- UIElement.IsMeasureValid
- UIElement.IsMouseCaptured
- UIElement.IsMouseDirectlyOver
- UIElement.IsRightToLeft
- UIElement.Size
- UIElement.VisualOffset
- UIElement.Click
- UIElement.DoubleClick
- UIElement.MouseCaptureLost
- UIElement.MouseDown
- UIElement.MouseEnter
- UIElement.MouseHover
- UIElement.MouseLeave
- UIElement.MouseMove
- UIElement.MouseUp
- UIElement.MouseWheel
- UIElement.Resize
- LogicalTreeNodeBase.CreateChildren()
- MarshalByRefDisposableObject.Dispose()
- MarshalByRefDisposableObject.VerifyNotDisposed()
- MarshalByRefDisposableObject.IsDisposed
- MarshalByRefDisposableObject.Disposed
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()