Class CadInput
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The answer a command got to its last prompt.
public sealed class CadInput
- Inheritance
-
CadInput
- Inherited Members
Properties
- Control
Gets whether Ctrl was held as the point, distance or angle was picked on the canvas, as ARC and PLINE take a point picked with Ctrl held to draw the arc the other way round, and a grip edit takes its first point so picked as Copy; false for an answer typed and for every other answer.
- Handles
Gets the handles of a selection, in ordinal order, or of the one object picked.
- IsNone
Gets whether the answer is Enter with nothing typed.
- IsPoint
Gets whether the answer is a point.
- Kind
Gets what kind of answer it is.
- Number
Gets the number of a distance, an angle (in radians) or a whole number.
- Point
Gets the point of a point answer, the point picked for a distance or an angle, and the point one object was picked at on the canvas.
- Shift
Gets whether Shift was held as the one object was picked on the canvas, as TRIM takes a Shift-pick to extend; false for every other answer.
- Text
Gets the keyword of a keyword answer, as the prompt writes it, or the text of a text answer.
Methods
- Is(string)
Gets whether the answer is a keyword, either case.