Method Set
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Set(CadDocument, IReadOnlyCollection<string>, string, string)
Sets one property of entities.
public static CadEditResult Set(CadDocument document, IReadOnlyCollection<string> handles, string label, string value)
Parameters
documentCadDocumentThe document.
handlesIReadOnlyCollection<string>The handles of the entities; null or empty for the drawing's current settings.
labelstringThe row's label, as Describe(CadDocument, CadSpace, IReadOnlyCollection<string>) gives it: "Layer", "Start X", "Radius".
valuestringThe text typed.
Returns
- CadEditResult
What came of it; refused with the reason, nothing written, for a value that cannot be taken, a row that cannot be set, or an entity on a locked layer.
Exceptions
- ArgumentNullException
Thrown when the document, the label or the value is null.