[]
Replaces the current selection with the specified object.
public void Select(object selectedObject)
Type | Name | Description |
---|---|---|
object | selectedObject | The object to select. This becomes the only selected object in the designer. |
This method changes the current selection to the specified object, effectively deselecting any previously selected objects. It is equivalent to setting the selection with Replace, which means the new selection replaces the old one entirely.
Adds the specified object to the current selection or makes it the primary selection.
public void Select(object selectedObject, bool continuous)
Type | Name | Description |
---|---|---|
object | selectedObject | The object to add to the selection or make primary. |
bool | continuous | If |
This method modifies the current selection based on the value of continuous
. If continuous
is true
,
the specified object is added to the current selection, maintaining any existing selections. If continuous
is false
,
the current selection is replaced with the specified object, making it the primary selection. This behavior aligns with the
Primary selection type.