Class ToolWindow
Represents a dockable tool window in the environment
Inherited Members
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class ToolWindow : Window, IDisposable
Examples
Constructors
ToolWindow()
Creates a new ToolWindow
Declaration
public ToolWindow()
Remarks
The Window's ID will be set to null.
Examples
ToolWindow(Object)
Creates a new ToolWindow
Declaration
public ToolWindow(object id)
Parameters
Type | Name | Description |
---|---|---|
Object | id | The ID of the window (can be null) |
Examples
ToolWindow(Object, Control)
Creates a new ToolWindow containing the specified Control
Declaration
public ToolWindow(object id, Control control)
Parameters
Type | Name | Description |
---|---|---|
Object | id | The ID of the window (can be null) |
Control | control | The contained Control |
Examples
ToolWindow(Object, Control, String)
Creates a new ToolWindow
Declaration
public ToolWindow(object id, Control control, string caption)
Parameters
Type | Name | Description |
---|---|---|
Object | id | The ID of the window (can be null) |
Control | control | The contained Control |
String | caption | The initial caption of the window |
Examples
Properties
AutoHide
Gets or sets if the docked window is hidden in one of the auto-hide areas around the edges of the application.
Declaration
public bool AutoHide { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
CloseButtonBehavior
Gets or sets if the window is hidden or closed when the close button (x) is clicked. Default is Hide.
Declaration
public CloseButtonBehavior CloseButtonBehavior { get; set; }
Property Value
Type | Description |
---|---|
CloseButtonBehavior |
Docked
Gets a value indicating if this window is docked/tabbed or floating
Declaration
public bool Docked { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaximumPreferredSize
This property is obsolete and may be removed in a future version. Use Control.MaximumSize instead.
Declaration
olete("Use Control.MaximumSize instead")]
public Size MaximumPreferredSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
MinimumPreferredSize
This property is obsolete and may be removed in a future version. Use Control.MinimumSize instead.
Declaration
olete("Use Control.MinimumSize instead")]
public Size MinimumPreferredSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
PreferredSize
Gets or sets the window's preferred size
Declaration
public Size PreferredSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
Remarks
Actual size will depend on how the window is docked.
Methods
Dock(DockStyle)
Docks the window to the specified edge
Declaration
public void Dock(DockStyle dockStyle)
Parameters
Type | Name | Description |
---|---|---|
DockStyle | dockStyle | Edge to dock to |
Examples
Dock(DockStyle, ToolWindow)
Docks the window according to the specified parameters
Declaration
public void Dock(DockStyle dockStyle, ToolWindow referenceWindow)
Parameters
Type | Name | Description |
---|---|---|
DockStyle | dockStyle | Edge to dock to |
ToolWindow | referenceWindow | Reference window for dockStyle |
DockTabbed(ToolWindow)
Creates a tabbed group of this window and the reference window
Declaration
public void DockTabbed(ToolWindow referenceWindow)
Parameters
Type | Name | Description |
---|---|---|
ToolWindow | referenceWindow |
Examples
Float()
Undocks the window and displays it as a floating window
Declaration
public void Float()