Table of Contents

Class Toolbar

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Represents a toolbar control.

[ControlCategory("MenusAndToolbars")]
public class Toolbar : NonVisualControl, IBaseObject, IDisposableObject, IInputElement, ISupportInitialize, IFocusable, IWin32Window, ITextProperty, IComponent, IDisposable
Inheritance
Toolbar
Implements
Extension Methods

Remarks

Please use AuiManager and AuiToolbar instead of Toolbar as it is deprecated and has limited functionality.

Constructors

Toolbar()

Initializes a new instance of the Toolbar class.

Properties

ContentElements

Returns a collection of content elements which is used by the UIXML loader to find content items by index.

ControlKind

Returns control identifier.

DefaultImageSize144dpi

Defines the default size of toolbar images for displays with 144 DPI.

DefaultImageSize192dpi

Defines the default size of toolbar images for displays with 192 DPI.

DefaultImageSize288dpi

Defines the default size of toolbar images for displays with 288 DPI.

DefaultImageSize96dpi

Defines the default size of toolbar images for displays with 96 DPI.

ImageToText

Gets or sets a value which specifies display modes for toolbar item image and text.

IsBottom

Gets or sets a value indicating whether to align the toolbar at the bottom of parent window.

IsRight

Gets or sets a value indicating whether to align the toolbar at the right side of parent window.

IsVertical

Gets or sets a value indicating whether to align the toolbar vertically.

ItemImagesVisible

Gets or sets a boolean value indicating whether this toolbar item images are visible.

ItemTextVisible

Gets or sets a boolean value indicating whether this toolbar item text is visible.

Items

Gets a collection of MenuItem objects associated with the menu.

LogicalChildrenCollection

Returns a collection of elements which can be treated as "logical children" of this element.

NoDivider

Gets or sets a value indicating whether to draw divider (border) above the toolbar (Windows only).

Methods

GetDefaultImageSize()

Returns suggested toolbar image size depending on the current DPI.

GetDefaultImageSize(SizeD)

Returns suggested toolbar image size depending on the given DPI value.

GetDefaultImageSize(Control?)

Returns suggested toolbar image size in pixels depending on the given DPI value.

GetDefaultImageSize(double)

Returns suggested toolbar image size depending on the given DPI value.

Realize()

Updates visual representation of the toolbar after it's items where added, deleted or updated. In most cases this method is called automatically, so you don't need to call it.