Class ObjectSelectionControl
Represents a control for selecting a Project
Inheritance
Namespace: ABB.Robotics.RobotStudio .Stations.Forms
Assembly: ABB.Robotics.RobotStudio.Stations.Forms.dll
Syntax
public class ObjectSelectionControl : ContainerControl
Constructors
ObjectSelectionControl()
Creates a new Object
Declaration
public ObjectSelectionControl()
Properties
AutoSelectNextControl
Gets or sets whether the control should call SelectNextControl when selection is updated.
Declaration
[Browsable(true)]
public bool AutoSelectNextControl { get; set; }
Property Value
Type | Description |
---|---|
bool |
Filter
Gets or sets a Predicate<T> that can be used for filtering selection.
Declaration
public Predicate<object> Filter { get; set; }
Property Value
InitialText
Gets or sets the initial text in the selection control.
Declaration
public string InitialText { get; set; }
Property Value
Type | Description |
---|---|
string |
LabelText
Gets or sets the text to display above the selection control.
Declaration
public string LabelText { get; set; }
Property Value
Type | Description |
---|---|
string |
ReadOnly
Gets or sets if the selection control is read-only.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
ScaleChildren
Declaration
protected override bool ScaleChildren { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
SelectedObject
Gets or sets the selected Project
Declaration
[Browsable(false)]
public ProjectObject SelectedObject { get; set; }
Property Value
Type | Description |
---|---|
Project |
Methods
AddDropDownExclusion(ProjectObject)
Adds an object that should be excluded from the dropdown list.
Declaration
public void AddDropDownExclusion(ProjectObject obj)
Parameters
Type | Name | Description |
---|---|---|
Project |
obj |
AddDropDownScope(ProjectObject)
Specifies that all descendants of an object should be added to the dropdown list.
Declaration
public void AddDropDownScope(ProjectObject scope)
Parameters
Type | Name | Description |
---|---|---|
Project |
scope |
AddDropDownValue(ProjectObject)
Adds a single object to the dropdown list.
Declaration
public void AddDropDownValue(ProjectObject obj)
Parameters
Type | Name | Description |
---|---|---|
Project |
obj |
AddValidType(Type)
Adds a Type that is valid for selection.
Declaration
public void AddValidType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Remarks
The type should be a subclass of Project
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
OnResize(EventArgs)
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Event |
e |
Overrides
SetBoundsCore(int, int, int, int, BoundsSpecified)
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type | Name | Description |
---|---|---|
int | x | |
int | y | |
int | width | |
int | height | |
Bounds |
specified |
Overrides
Events
SelectedObjectChanged
Occurs when Selected
Declaration
public event EventHandler SelectedObjectChanged
Event Type
Type | Description |
---|---|
Event |
SelectedObjectChanging
Occurs before Selected
Declaration
public event ObjectSelectionControlChangingEventHandler SelectedObjectChanging
Event Type
Type | Description |
---|---|
Object |