Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

3c8eccee f46f 73d1 c734 3681ec72fd54

haplokuon edited this page May 6, 2023 · 1 revision

Text Class

netDxf 3.0.0 Library

Represents a Text entity.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public class Text : EntityObject

VB

Public Class Text
	Inherits EntityObject

C++

public ref class Text : public EntityObject

F#

type Text = 
    class
        inherit EntityObject
    end
Inheritance Object → DxfObjectEntityObject → Text

Constructors

Text() Initializes a new instance of the Text class.
Text(String) Initializes a new instance of the Text class.
Text(String, Vector2, Double) Initializes a new instance of the Text class.
Text(String, Vector3, Double) Initializes a new instance of the Text class.
Text(String, Vector2, Double, TextStyle) Initializes a new instance of the Text class.
Text(String, Vector3, Double, TextStyle) Initializes a new instance of the Text class.

Properties

Alignment Gets or sets the text alignment.
CodeName Gets the DXF object name.
(Inherited from DxfObject)
Color Gets or sets the entity color.
(Inherited from EntityObject)
DefaultMirrText Gets or sets if the text will be mirrored when a symmetry is performed, when the current Text entity does not belong to a DXF document.
Handle Gets the handle assigned to the DXF object.
(Inherited from DxfObject)
Height Gets or sets the text height.
IsBackward Gets or sets if the text is backward (mirrored in X).
IsUpsideDown Gets or sets if the text is upside down (mirrored in Y).
IsVisible Gets or set the entity visibility.
(Inherited from EntityObject)
Layer Gets or sets the entity layer.
(Inherited from EntityObject)
Linetype Gets or sets the entity line type.
(Inherited from EntityObject)
LinetypeScale Gets or sets the entity line type scale.
(Inherited from EntityObject)
Lineweight Gets or sets the entity line weight, one unit is always 1/100 mm (default = ByLayer).
(Inherited from EntityObject)
Normal Gets or sets the entity normal.
(Inherited from EntityObject)
ObliqueAngle Gets or sets the font oblique angle.
Owner Gets the owner of the actual DXF object.
(Inherited from EntityObject)
Position Gets or sets Text position in world coordinates.
Reactors Gets the list of DXF objects that has been attached to this entity.
(Inherited from EntityObject)
Rotation Gets or sets the text rotation in degrees.
Style Gets or sets the text style.
Transparency Gets or sets layer transparency (default: ByLayer).
(Inherited from EntityObject)
Type Gets the entity type.
(Inherited from EntityObject)
Value Gets or sets the text string.
Width Gets or sets the text width, only applicable for text Alignment.Fit and Alignment.Align.
WidthFactor Gets or sets the width factor.
XData Gets the entity extended data.
(Inherited from DxfObject)

Methods

Clone Creates a new Text that is a copy of the current instance.
(Overrides EntityObject.Clone())
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Converts the value of this instance to its equivalent string representation.
(Inherited from EntityObject)
TransformBy(Matrix4) Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix.
(Inherited from EntityObject)
TransformBy(Matrix3, Vector3) Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.
(Overrides EntityObject.TransformBy(Matrix3, Vector3))

Events

LayerChanged
(Inherited from EntityObject)
LinetypeChanged
(Inherited from EntityObject)
TextStyleChanged  
XDataAddAppReg
(Inherited from DxfObject)
XDataRemoveAppReg
(Inherited from DxfObject)

See Also

Reference

netDxf.Entities Namespace

Clone this wiki locally