Table of Contents

Class CadSelection

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The entities that have been selected, by handle. An entity is picked and selected as a whole: all the display items it was drawn as are selected with it.

public sealed class CadSelection
Inheritance
CadSelection
Inherited Members

Properties

Count

Gets the number of selected entities.

CurrentVertex

Gets or sets the vertex of a selected polyline the Properties panel shows, counted from 1, as the Current vertex row of AutoCAD's palette steps through them; back to 1 whenever the set of selected handles changes. A polyline of 4 vertices at 9 shows its fourth.

Handles

Gets the handles of the selected entities.

Methods

Add(IEnumerable<string>)

Selects entities, those already selected staying so.

Clear()

Selects nothing.

Contains(string)

Gets whether an entity is selected.

Remove(IEnumerable<string>)

Takes entities out of the selection.

Set(IEnumerable<string>)

Makes the selection exactly these entities.

Toggle(string)

Selects an entity that is not selected and deselects one that is.

Events

Changed

Raised when the set of selected handles changes, or the vertex Properties shows (CurrentVertex).