Constructor DxfText
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DxfText(GeoPoint3, GeoVector3, double, double, string, bool, double, double)
Initializes a text of one's own, to be written by Add(DxfText, string).
public DxfText(GeoPoint3 position, GeoVector3 normal, double height, double rotation, string value, bool isMultiline = false, double widthFactor = 1, double width = 0)
Parameters
positionGeoPoint3Where it stands: the start of its baseline for a TEXT, the insertion point for an MTEXT.
normalGeoVector3The way it faces; made unit, and kept as given where it is within 1E-12 of unit already.
heightdoubleHow tall its letters are; above nought.
rotationdoubleHow far it is turned, in radians counter-clockwise about the normal from the x axis of the normal's own system, as AutoCAD works it out; for the normal (0, 0, 1), from the x axis. It is kept from nought up to a whole turn: -pi / 2 is 3 pi / 2.
valuestringIts words; a TEXT's on one line, an MTEXT's with a line feed between paragraphs.
isMultilinebooltrue for an MTEXT; false for a TEXT.
widthFactordoubleHow much wider than its height says its letters are drawn, above nought; 1 for an MTEXT, which has none.
widthdoubleHow wide an MTEXT's paragraphs run before they wrap, nought for no limit; nought for a TEXT, which does not wrap.
Exceptions
- ArgumentNullException
Thrown when the value is null.
- ArgumentException
Thrown when the position or the normal is not finite, the normal has no length, or the value holds a carriage return, or a line feed in a TEXT.
- ArgumentOutOfRangeException
Thrown when the height or width factor is not a finite number above nought, the rotation not finite, the width not a finite number of nought or more, an MTEXT given a width factor other than 1, or a TEXT a width other than nought.