TextObjectStyle

Returns or modifies the font style of a text object.

Syntax

rhinoscriptsyntax.TextObjectStyle (object_id, style=None)

rhinoscript.geometry.TextObjectStyle (object_id, style=None)

Parameters

object_id

Required.  String or Guid.  The identifier of the object.

style

Optional. Number.  The font style.  If omitted, the current font style is returned.  The font style can be any number of the following flags:

Value

Description

0

Normal.

1

Bold.

2

Italic.

Returns

Number

If a style is not specified,  the current font style if successful.

Number

If a style is specified,  the previous font style if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select text")

if rs.IsText(obj):

    rs.TextObjectStyle( obj, 3 )

Also See

AddText

IsText

TextObjectFont

TextObjectHeight

TextObjectPlane

TextObjectPoint

TextObjectText