HelpBot Assistant

How can I help you?

VisioTextStyleModel

6 Feb 20261 minute to read

Represents comprehensive text styling properties for Visio text elements.
Includes color, font, size, bold, italic, decoration, and alignment.

Properties

TEXT_STYLE_NONE boolean

Flag indicating no text styling applied

bold boolean

Flag indicating if text is bold

color string

Text color value

fill string

Background fill color

fontFamily string

Font family name (default: ‘Calibri’)

fontSize number

Font size in points

italic boolean

Flag indicating if text is italic

opacity number

Text opacity (0-1 range)

textAlign VisioTextAlignmentModel

Text alignment properties

textDecoration VisioTextDecorationModel

Text decoration properties (underline, strikethrough)

Methods

fromJs

Creates a VisioTextStyleModel instance from a Visio shape object.
Extracts comprehensive text styling information including font, size, color, and decorations.

Parameter Type Description
shape any The Visio shape object containing text style data
isConnector (optional) boolean To Check whether the shape is connector or not

Returns VisioTextStyleModel