Skip to content

TextNode

Public Class

This class represents a text annotation object in a model-exporting process.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.RenderNode
Autodesk.Revit.DB.TextNode

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class TextNode : RenderNode

The TextNode type exposes the following members.

Properties

Name

Description


Public Property

Direction of the base line of the text object in model space.


Public Property

The color of the text.


Public Property
FontHeight

Height [ft] of the text font, in model space.


Public Property

The name of the text font.


Public Property

Height [ft] of the area of the text content in model space.


Public Property

Indicates default horizontal alignment of the text.


Public Property

Indicates whether the default formatting is set to bold text.


Public Property

Indicates whether the default formatting is set to italic text.


Public Property
IsKeptReadable

Indicates text behavior inside a rotated text object.


Public Property

Indicates whether the text background is transparent or opaque.


Public Property

Indicates whether the default formatting is set to underlined text.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.
(Inherited from RenderNode)


Public Property

A readable name of the output node.
(Inherited from RenderNode)


Public Property
Position

Position of the text in model coordinates.


Public Property

The size [ft] of the interval between tab stops, in model space.


Public Property
Text

The content of the text annotation as a plain string stripped of all formatting.


Public Property

Direction along the vertical axis of letters of the text object in model space.


Public Property

Indicates default vertical alignment of the text.


Public Property
Width

Width [ft] of the area of the text content in model space.


Public Property

Scale applied to the width of the text.


Methods

Name

Description


Public Method

(Inherited from RenderNode)


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Returns an FormattedText object that contains text and associated formatting of this TextNode.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


Remarks

See also:

.