Method Kinds
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Kinds(CadDocument, IReadOnlyCollection<string>)
The list the selection box of the Properties palette drops down, as AutoCAD's does: the whole selection first, then, where there are objects of several kinds, one row for each kind with its count, in the order of the kinds' names. Of seven objects, five MTEXTs and two OLE frames, the rows read "All (7)", "MText (5)" and "OLE Object (2)"; of three lines the one row reads "Line (3)", which is the whole selection. Describe(CadDocument, CadSpace, IReadOnlyCollection<string>) of a row's handles shows its properties as though only those objects were selected.
public static IReadOnlyList<CadSelectionKind> Kinds(CadDocument document, IReadOnlyCollection<string> handles)
Parameters
documentCadDocumentThe document.
handlesIReadOnlyCollection<string>The handles of the selected entities; null or empty for none. A handle the document has no entity of is passed over.
Returns
- IReadOnlyList<CadSelectionKind>
The rows; none with no object selected.
Exceptions
- ArgumentNullException
Thrown when the document is null.