ToolBar Class

Viewport ToolBar.
Public Class ToolBar 
Inherits BarBase 
Implements IDisposable, _ 
ICloneable
This language is not supported or no code example is available.
public class ToolBar : BarBase
IDisposable
ICloneable
This language is not supported or no code example is available.
Name Description
Public constructor ToolBar() Empty constructor.
Public constructor ToolBar(ToolBar) Copy constructor.
Public constructor ToolBar(positionType, bool, ObservableCollection<ToolBarButton>) Standard constructor (WPF).
Public constructor ToolBar(positionType, bool, ToolBarButton[]) Standard constructor (WinForms).
Top
Name Description
Public property Buttons Gets or sets the list of toolbar buttons.
Protected property CustomViewport Tells if the UI element is drawn with a custom viewport. (inherited from UserInterfaceBase).
Public property Disposed (inherited from DisposableBase).
Protected property LocationAtOrigin When doing a render to Bitmap of the item, must not change the viewport origin. (inherited from UserInterfaceBase).
Internal protected (Protected Friend) property ParentViewport (inherited from UserInterfaceBase).
Public property Position Gets or sets the toolbar position.
Public property Visible Gets or sets the ToolBar visibility status.
Top
Methods
 
Name Description
Public method Static BuildRoundedRectangle(float, float, float, float, float)
Public method Static ButtonsAreEquals(ToolBarButtonList, ToolBarButtonList)
Public method Clone()
Public method Contains(Point) Tells if a point in viewport coordinates is over one of the buttons.
Public method Dispose()
Internal protected (Protected Friend) method Draw(DrawSceneParams)
Protected method DrawForBitmap(object) (inherited from BarBase).
Public method Equals(Object) (inherited from Object).
Protected method Finalize (inherited from Object).
Public method GetBounds(Viewport) Gets the bounds rectangle in screen coordinates.
Internal protected (Protected Friend) method GetDefaultLayerName(Workspace) Use this method to get the correct layer name for internal Meshes. (inherited from UserInterfaceBase).
Public method GetHashCode (inherited from Object).
Public method GetThumbnail(Viewport, Size, Color) (inherited from BarBase).
Public method GetType (inherited from Object).
Protected method Hover(Workspace, ToolBarButton) (inherited from BarBase).
Protected method MemberwiseClone (inherited from Object).
Protected method OnMouseDown(Workspace, MouseEventArgs) (inherited from BarBase).
Protected method Static Repaint(Workspace) (inherited from BarBase).
Public method ScaleForDPI() Scales the element for high DPI settings. (inherited from UserInterfaceBase).
Public method ToString (inherited from Object).
Public method Update(IUserInterfaceElement)
Top
Name Description
Public enumeration positionType Toolbar position/orientation.
Public enumeration styleType Toolbar style type.
Top
Remarks
 
Call Workspace.CompileUserInterfaceElements to apply the changes

.NET Framework

Supported in: 4.7.2

In this article

Definition