Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.3 KB

File metadata and controls

53 lines (43 loc) · 1.3 KB

SetTextStyleRef

Description

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

Parameters

Name Type Description
objectId HANDLE handle to object
textStyleRef LONGINT text style reference id

Examples

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)

See Also

VS Functions: SetTextStyleRef | GetTextStyleRef | SetTextStyleRefN | GetTextStyleRefN | SetTextStyleByClass | SetTextStyleByClassN | IsTextStyleByClass | IsTextStyleByClassN

Version

Availability: from Vectorworks 2015

Category