Text

Text

In the API, the TextNote class represents Text. Its general features are as follows:

Table 38: General Features of TextNote

Function

API Method or Property

Add text to the application

Document.Create.NewTextNote() Method

Get and set string from the text component

TextNote.Text Property

Get and set text component position

TextNote.Coord Property

Get and set text component width

TextNote.Width Property

Get all text component leaders

TextNote.Leaders Property

Add a leader to the text component

TextNote.AddLeader() Method

Remove all leaders from the text component

TextNote.RemoveLeaders() Method

Revit supports two kinds of Leaders: straight leaders and arc leaders. Control the TextNote leader type using the TextNoteLeaderType enumerated type:

Table 39: Leader Types

Function

Member Name

-Add a right arc leader

TNLT_ARC_R

-Add a left arc leader

TNLT_ARC_L

-Add a right leader.

TNLT_STRAIGHT_R

-Add a left leader.

TNLT_STRAIGHT_L

Note: Straight leaders and arc leaders cannot be added to a Text type at the same time.