Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.42 KB

File metadata and controls

51 lines (41 loc) · 1.42 KB

GetTextStyleRef

Description

Function GetTextStyleRef returns the text style for the referenced object. The integer returned is the internal index of the text style used by this object.

If the text object is using class text style, this returns the effective style. You should use the TextStyleByClass functions to check and preserve by-class behavior.

FUNCTION GetTextStyleRef(objectId : HANDLE): LONGINT;
def vs.GetTextStyleRef(objectId):
    return LONGINT

Parameters

Name Type Description
objectId HANDLE handle to object

Examples

resultN := GetTextStyleRef(objectId);
import vs

# Function GetTextStyleRef returns the text style for the referenced object.
objectId = vs.FSActLayer()  # handle to the first selected object on the active layer

resultN = vs.GetTextStyleRef(objectId)
vs.Message('GetTextStyleRef returned: ' + str(resultN))

See Also

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

Version

Availability: from Vectorworks 2015

Category