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() Creates a new object that is a copy of the current instance.
Public method Contains(Point) Tells if a point in viewport coordinates is over one of the buttons.
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Internal protected (Protected Friend) method Draw(DrawSceneParams)
Protected method DrawForBitmap(object) (inherited from BarBase).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetBounds(Viewport) Gets the bounds rectangle in screen coordinates.
Internal protected (Protected Friend) method GetDefaultLayerName(Environment) Use this method to get the correct layer name for internal Meshes. (inherited from UserInterfaceBase).
Public method Static GetDefaultToolBar() Gets the default ToolBar.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetThumbnail(Viewport, Size, Color) (inherited from BarBase).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method Hover(Environment, ToolBarButton) (inherited from BarBase).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method ObservableCollectionPropertyChanged(object, NotifyCollectionChangedEventArgs) For internal use only. (inherited from DisposableBase).
Protected method OnMouseDown(Environment, MouseEventArgs) (inherited from BarBase).
Protected method RaisePropertyChangedEvent(object, DependencyProperty) For internal use only. (inherited from DisposableBase).
Protected method Static Repaint(Environment) (inherited from BarBase).
Public method ScaleForDPI() Scales the element for high DPI settings. (inherited from UserInterfaceBase).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Update(IUserInterfaceElement) Updates the contents of the element with the data from another element.
Top
Events
 
Name Description
Public event PropertyChanged For internal use only. (inherited from DisposableBase).
Top
Name Description
Public enumeration positionType Toolbar position/orientation.
Public enumeration styleType Toolbar style type.
Top
Fields
 
Name Description
Public field Static PropertyChangedEvent For internal use only. (inherited from DisposableBase).
Top
Remarks
 
Call Environment.CompileUserInterfaceElements to apply the changes

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition