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

47add276 6fbc f516 bfa2 73a0fb22a80d

haplokuon edited this page May 6, 2023 · 1 revision

Attribute Class

netDxf 3.0.0 Library

Represents an attribute.

Definition

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

C#

public class Attribute : DxfObject, ICloneable

VB

Public Class Attribute
	Inherits DxfObject
	Implements ICloneable

C++

public ref class Attribute : public DxfObject, 
	ICloneable

F#

type Attribute = 
    class
        inherit DxfObject
        interface ICloneable
    end
Inheritance Object → DxfObject → Attribute
Implements ICloneable

Remarks

The attribute position, rotation, height and width factor values also includes the transformation of the Insert entity to which it belongs.
During the attribute initialization a copy of all attribute definition properties will be copied, so any changes made to the attribute definition will only be applied to new attribute instances and not to existing ones. This behavior is to allow imported Insert entities to have attributes without definition in the block, although this might sound not totally correct it is allowed by AutoCad.

Constructors

Attribute Initializes a new instance of the Attribute 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.
Definition Gets the attribute definition.
Flags Gets or sets the attribute flags.
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 attribute text is backward (mirrored in X).
IsUpsideDown Gets or sets if the attribute text is upside down (mirrored in Y).
IsVisible Gets or set the entity visibility.
Layer Gets or sets the entity layer.
Linetype Gets or sets the entity line type.
LinetypeScale Gets or sets the entity line type scale.
Lineweight Gets or sets the entity line weight, one unit is always 1/100 mm (default = ByLayer).
Normal Gets or sets the entity normal.
ObliqueAngle Gets or sets the font oblique angle.
Owner Gets the owner of the actual DXF object.
Position Gets or sets the attribute position.
Rotation Gets or sets the attribute text rotation in degrees.
Style Gets or sets the attribute text style.
Tag Gets the attribute tag.
Transparency Gets or sets layer transparency (default: ByLayer).
Value Gets or sets the attribute value.
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 Attribute that is a copy of the current instance.
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 Obtains a string that represents the DXF object.
(Inherited from DxfObject)
TransformBy(Matrix4) Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix.
TransformBy(Matrix3, Vector3) Moves, scales, and/or rotates the current attribute given a 3x3 transformation matrix and a translation vector.

Events

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

See Also

Reference

netDxf.Entities Namespace

Clone this wiki locally