Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 888 Bytes

File metadata and controls

39 lines (30 loc) · 888 Bytes

CreateTextStyleRes

Description

Creates a new text style resource with the specified name. A handle to the new resource is returned. Once the resource is created the attributes of the text style resource should be set appropriately.

FUNCTION CreateTextStyleRes(name : STRING): HANDLE;
def vs.CreateTextStyleRes(name):
    return HANDLE

Parameters

Name Type Description
name STRING The name for the new text style.

Examples

resultH := CreateTextStyleRes('Example');
import vs

# Creates a new text style resource with the specified name.
name = 'Example'

objHandle = vs.CreateTextStyleRes(name)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

Version

Availability: from Vectorworks 2014

Category