Click or drag to resize

DXFReaderNETControlAddText Method

Adds a new text to the current drawing.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public EntityObject AddText(
	string Text,
	Vector3 Position,
	Vector3 AlignmentPoint,
	double Height = 2,5,
	double Rotation = 0,
	TextAlignment TextAlignment = TextAlignment.BaselineLeft,
	string StyleName = "",
	short ACIColor = 256,
	string LayerName = "",
	string LineTypeName = ""
)

Parameters

Text
Type: SystemString
The text value.
Position
Type: DXFReaderNETVector3
The position of the text.
AlignmentPoint
Type: DXFReaderNETVector3
The secon alignmentpoint of the text. Optional, this value is meaningful only Alignment = Fit or Alignment = Aligned.
Height (Optional)
Type: SystemDouble
The text heigh in drawing's units (Default value = 2.5).
Rotation (Optional)
Type: SystemDouble
The text rotation in degree (Default value = 0).
TextAlignment (Optional)
Type: DXFReaderNET.EntitiesTextAlignment
The text alignment (Default value = TextAlignment.BaselineLef).
StyleName (Optional)
Type: SystemString
The text style name. If omitted the CurrentTextStyle will be used.
ACIColor (Optional)
Type: SystemInt16
A number for 0 to 256 corresponding to the AutoCAD Color Index (0 = ByBlock; 256 = ByLayer. Default value = 256).
LayerName (Optional)
Type: SystemString
The layer name. If omitted, or layername doesn't exist, the CurrentLayer will be used.
LineTypeName (Optional)
Type: SystemString
The linetype name. If omitted, or linetype doesn't exist, the CurrentLineTypeName will be used.

Return Value

Type: EntityObject
The new added TextS.
Remarks
The entity is added to the active layout.
See Also