Share

SketchText.textStyle Property

Parent Object: SketchText
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/SketchText.h>

Description

Gets and sets the text style to apply to the entire text. This is a bitwise enum so styles can be combined to apply multiple styles. For example you can apply bold and underline.

Syntax

"sketchText_var" is a variable referencing a SketchText object.

# Get the value of the property.
propertyValue = sketchText_var.textStyle

# Set the value of the property.
sketchText_var.textStyle = propertyValue

Property Value

This is a read/write property whose value is a TextStyles.

Version

Introduced in version March 2015

Was this information helpful?