Provides the base requirements for a control that can contain bar command links.
Properties
CommandLinks
Gets the Bar
Property Value
- Bar
Command :Link Collection The Bar
Command containing the command links for use in the control.Link Collection
Control
Gets the Control that contains the IBar
Property Value
- Control:
The Control that contains the IBar
Control .
DisplayOrientation
Gets the current display orientation of the bar control, if docked.
Property Value
- Orientation:
A Orientation that specifies the orientation.
DisplayStyle
Gets the display style of command links in the bar control.
Property Value
- Bar
Control :Display Style A Bar
Control that specifies the display style.Display Style
Guid
Gets a GUID that uniquely identifies the IBar
Property Value
- string:
A GUID that uniquely identifies the IBar
Control .
HasGripper
Gets whether the bar control has a gripper.
Property Value
- bool:
true
if the bar control has a gripper; otherwise,false
.
InCustomizeMode
Gets whether the bar control is in customize mode.
Property Value
- bool:
true
if the bar control is in customize mode; otherwise,false
.
InDesignMode
Gets whether the bar control is in design mode.
Property Value
- bool:
true
if the bar control is in design mode; otherwise,false
.
IsOnPopup
Gets whether the control is on a popup.
Property Value
- bool:
true
if the control is on a popup; otherwise,false
.
IsRightToLeft
Gets whether the control is using a right-to-left layout.
Property Value
- bool:
true
if the control is using a right-to-left layout; otherwise,false
.
LayoutOrientation
Gets the current layout orientation of the bar control, if docked.
Property Value
- Orientation:
A Orientation that specifies the orientation.
LayoutStyle
Gets the layout style of command links in the bar control.
Property Value
- Bar
Control :Layout Style A Bar
Control that specifies the layout style.Layout Style
OwnerCommandLink
Gets the Bar
Property Value
- Bar
Command :Link The Bar
Command that owns the bar control, if on a popup.Link
OwnerCommandLinkDisplaySide
Gets or sets the side of the Owner
RendererResolved
Gets the IBar
Property Value
- IBar
Renderer : The IBar
Renderer used to render the control.
Remarks
This property will return a global renderer if there is no control instance renderer override.
ScreenBounds
Gets the screen bounds of the control.
Property Value
- Rectangle:
A
Rectangle
specifying the screen bounds of the control.
SelectedCommandLink
Gets or sets the selected Bar
Property Value
- Bar
Command :Link The selected Bar
Command .Link
Methods
Close(BarPopupCloseReason)
Closes the IBar
Parameter | Type | Description |
---|---|---|
closeReason | Bar |
A Bar |
CloseAllPopups(BarPopupCloseReason)
Closes all active popups.
Parameter | Type | Description |
---|---|---|
closeReason | Bar |
A Bar |
CloseChildPopup(BarPopupCloseReason)
Closes the child popup of the IBar
Parameter | Type | Description |
---|---|---|
closeReason | Bar |
A Bar |
HitTest(Point)
Hit tests the specified screen Point
for a Bar
Parameter | Type | Description |
---|---|---|
point | Point | The screen |
Returns
- Bar
Command :Link The Bar
Command at the specifiedLink Point
.
HitTestForCustomizeDropTarget(BarCommandLink, Point)
Hit tests the specified screen Point
for a customize drop target.
Parameter | Type | Description |
---|---|---|
sourceCommandLink | Bar |
The source Bar |
point | Point | The screen |
Returns
- Bar
Customize :Drop Target A Bar
Customize that specifies a customize drop target.Drop Target
Invalidate(InvalidationLevels, InvalidationTypes)
Invalidates the specified states for the element or its related elements.
Parameter | Type | Description |
---|---|---|
levels | Invalidation |
The hierarchy levels at which to invalidate. |
types | Invalidation |
The types of invalidation to perform. |
Process(BarProcessEventArgs)
Performs processing based on some sort of event.
Parameter | Type | Description |
---|---|---|
e | Bar |
A |
SelectNextCommandLink()
Selects the next command link.
Returns
- Bar
Command :Link The Bar
Command that was selected.Link
SelectPreviousCommandLink()
Selects the previous command link.
Returns
- Bar
Command :Link The Bar
Command that was selected.Link
Update()
Ensures that all invalidated regions of the control are painted.