GetTextStyleRefN returns the text style reference at a specified position within the text object. Reference 0 means Un-Styled.
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 GetTextStyleRefN(
objectId : HANDLE;
position : INTEGER): LONGINT;def vs.GetTextStyleRefN(objectId, position):
return LONGINT| Name | Type | Description |
|---|---|---|
| objectId | HANDLE | handle to text object |
| position | INTEGER | Position in text string, zero-based. |
VS Functions: SetTextStyleRef | GetTextStyleRef | SetTextStyleRefN | GetTextStyleRefN | SetTextStyleByClass | SetTextStyleByClassN | IsTextStyleByClass | IsTextStyleByClassN
Availability: from Vectorworks 2015