Constructor CadFilterLine
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
CadFilterLine(CadFilterProperty, string, params string[])
Makes a line.
public CadFilterLine(CadFilterProperty property, string value, params string[] operators)
Parameters
propertyCadFilterPropertyWhat it tests.
valuestringThe value: a kind, a name or a wild-card pattern, a colour ("1", "1 - Red", "Red", "ByLayer", "ByBlock"), a number ("15"), an angle in degrees, or for a point "x,y,z"; ignored for the begin or end of a group.
operatorsstring[]How the value is tested, "=", "!=", "<", "<=", ">" or ">=" for a colour or a number, and for a point also "*" for a coordinate that is not tested: none for "=", one for all three coordinates, or three. Names and kinds are tested with "=" alone.
Exceptions
- ArgumentNullException
Thrown when the value is null.
- ArgumentException
Thrown when the value is not one AutoCAD's filter takes ("Invalid Color number.", "Invalid Number.", "Invalid X coordinate.", "Invalid Name.") or an operator is not one the property takes ("Invalid Filter list - Invalid op_code string.").