TextObjectText

Returns or modifies the text string of a text object.  Text objects can be created using Rhino's Text command.

Syntax

Rhino.TextObjectText (strObject [, strText])

Parameters

strObject

Required.  String.  The identifier of the object.

strText

Optional.  String.  A new character or text string.

Returns

String

If a new text string is not specified,  the current string value if successful.

String

If a new text string is specified,  the previous string value if successful.

Null

If not successful, or on error.

Example

Dim strObject

strObject = Rhino.GetObject("Select text")

If Rhino.IsText(strObject) Then

  Rhino.TextObjectText strObject, "Rhino"

End If

Also See

AddText

IsText

TextObjectFont

TextObjectFormula

TextObjectHeight

TextObjectPlane

TextObjectPoint

TextObjectStyle