TextNode
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
BaseDirection
Direction of the base line of the text object in model space.
Public Property
Color
The color of the text.
Public Property
FontHeight
Height [ft] of the text font, in model space.
Public Property
FontName
The name of the text font.
Public Property
Height
Height [ft] of the area of the text content in model space.
Public Property
HorizontalAlignment
Indicates default horizontal alignment of the text.
Public Property
IsBold
Indicates whether the default formatting is set to bold text.
Public Property
IsItalic
Indicates whether the default formatting is set to italic text.
Public Property
IsKeptReadable
Indicates text behavior inside a rotated text object.
Public Property
IsTransparent
Indicates whether the text background is transparent or opaque.
Public Property
IsUnderlined
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
NodeName
A readable name of the output node.
(Inherited from RenderNode)
Public Property
Position
Position of the text in model coordinates.
Public Property
TabSize
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
UpDirection
Direction along the vertical axis of letters of the text object in model space.
Public Property
VerticalAlignment
Indicates default vertical alignment of the text.
Public Property
Width
Width [ft] of the area of the text content in model space.
Public Property
WidthScale
Scale applied to the width of the text.
Methods
Name
Description
Public Method
Dispose
(Inherited from RenderNode)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetFormattedText
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:
OnText(TextNode)
.