Procedure SetTextStyleRef sets the text style of an object to the referenced style. Reference 0 means Un-Styled. This procedure will replace by-class styling.
PROCEDURE SetTextStyleRef(
objectId : HANDLE;
textStyleRef : LONGINT);def vs.SetTextStyleRef(objectId, textStyleRef):
return None| Name | Type | Description |
|---|---|---|
| objectId | HANDLE | handle to object |
| textStyleRef | LONGINT | text style reference id |
SetTextStyleRef(objectId, 1);import vs
# Procedure SetTextStyleRef sets the text style of an object to the
# referenced style.
objectId = vs.FSActLayer() # handle to the first selected object on the active layer
textStyleRef = 0
vs.SetTextStyleRef(objectId, textStyleRef)VS Functions: SetTextStyleRef | GetTextStyleRef | SetTextStyleRefN | GetTextStyleRefN | SetTextStyleByClass | SetTextStyleByClassN | IsTextStyleByClass | IsTextStyleByClassN
Availability: from Vectorworks 2015