Creates a new TextNote object without a leader.
Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
Visual Basic |
---|
<ObsoleteAttribute("This method is deprecated in Revit 2016. Please use one of the TextNote.Create methods instead.")> _
Public Function NewTextNote ( _
pView As View, _
origin As XYZ, _
baseVec As XYZ, _
upVec As XYZ, _
lineWidth As Double, _
textAlign As TextAlignFlags, _
strText As String _
) As TextNote |
Parameters
- pView
- Type: Autodesk.Revit.DB..::..View
The view where the text note object will be visible.
- origin
- Type: Autodesk.Revit.DB..::..XYZ
The origin of the text note.
- baseVec
- Type: Autodesk.Revit.DB..::..XYZ
The horizontal direction for text in the text note.
- upVec
- Type: Autodesk.Revit.DB..::..XYZ
The vertical direction for text in the text note.
- lineWidth
- Type: System..::..Double
The width of the rectangle bounding the note text.
- textAlign
- Type: Autodesk.Revit.DB..::..TextAlignFlags
Flags indicating the alignment of the note.
This should be a bitwise OR including one of TEF_ALIGN_TOP, TEF_ALIGN_MIDDLE and TEF_ALIGN_BOTTOM and one of TEF_ALIGN_LEFT, TEF_ALIGN_CENTER and TEF_ALIGN_RIGHT.
The defaults for this flag are TEF_ALIGN_TOP | TEF_ALIGN_LEFT.
- strText
- Type: System..::..String
Text to display in the text note.
Include new line characters to force a multiple line note to be created.
Notes may also wrap automatically based on the width of the note rectangle.
Return Value
If successful, a TextNote object is returned.
Exceptions
See Also