TextNode Class

This class represents a text annotation object in a model-exporting process.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBRenderNode
    Autodesk.Revit.DBTextNode

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
 NameDescription
Public propertyBaseDirection Direction of the base line of the text object in model space.
Public propertyColor The color of the text.
Public propertyFontHeight Height [ft] of the text font, in model space.
Public propertyFontName The name of the text font.
Public propertyHeight Height [ft] of the area of the text content in model space.
Public propertyHorizontalAlignment Indicates default horizontal alignment of the text.
Public propertyIsBold Indicates whether the default formatting is set to bold text.
Public propertyIsItalic Indicates whether the default formatting is set to italic text.
Public propertyIsKeptReadable Indicates text behavior inside a rotated text object.
Public propertyIsTransparent Indicates whether the text background is transparent or opaque.
Public propertyIsUnderlined Indicates whether the default formatting is set to underlined text.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from RenderNode)
Public propertyNodeName A readable name of the output node.
(Inherited from RenderNode)
Public propertyPosition Position of the text in model coordinates.
Public propertyTabSize The size [ft] of the interval between tab stops, in model space.
Public propertyText The content of the text annotation as a plain string stripped of all formatting.
Public propertyUpDirection Direction along the vertical axis of letters of the text object in model space.
Public propertyVerticalAlignment Indicates default vertical alignment of the text.
Public propertyWidth Width [ft] of the area of the text content in model space.
Public propertyWidthScale Scale applied to the width of the text.
Top
Methods
 NameDescription
Public methodDispose
(Inherited from RenderNode)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetFormattedText Returns an FormattedText object that contains text and associated formatting of this TextNode.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
See also: OnText(TextNode).
See Also