How can I help you?
VisioConnectorAnnotation
6 Feb 20261 minute to read
Represents a text annotation for Visio connectors (lines, arrows).
Extends VisioAnnotation with connector-specific text positioning properties.
Properties
QuickStyleFontColor number
QuickStyle font color index
QuickStyleFontMatrix number
QuickStyle font matrix index
content string
Text content of the annotation
height number
Height of the annotation in diagram units
hyperlink VisioHyperlinkModel
Hyperlink associated with the annotation
id string
Unique identifier for the annotation
margin VisioMarginModel
Margin properties around the text
offset Point
Normalized offset position (0-1 range) relative to shape bounds
rotateAngle number
Rotation angle in degrees
segmentAngle boolean
Flag indicating if text angle should follow connector segment angle
style VisioTextStyleModel
Text styling properties
txtHeight number
Text height in connector units
txtLocPinX number
Text local pin X coordinate (center reference point)
txtLocPinY number
Text local pin Y coordinate (center reference point)
txtPinX number
Text pin X coordinate relative to connector
txtPinY number
Text pin Y coordinate relative to connector
txtWidth number
Text width in connector units
visible boolean
Flag indicating if annotation is visible
width number
Width of the annotation in diagram units
Methods
fromJs
Creates a VisioConnectorAnnotation instance from a Visio connector shape object.
Extracts all text and positioning properties specific to connectors.
| Parameter | Type | Description |
|---|---|---|
| shape | any |
The Visio connector shape object |
| defaultData | any |
Default text transform data for fallback values |
Returns VisioConnectorAnnotation