Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 961 Bytes

File metadata and controls

53 lines (41 loc) · 961 Bytes

SetTextWidth

Description

Procedure SetTextWidth Sets the text wrapping margin width of the referenced text object.

A call to SetTextWidth automatically activates text wrapping.

PROCEDURE SetTextWidth(
				theText       : HANDLE;
				widthDistance : REAL);
def vs.SetTextWidth(theText, widthDistance):
    return None

Parameters

Name Type Description
theText HANDLE Handle to text object.
widthDistance REAL Text wrapping margin setting for text.

Examples

VectorScript

PROCEDURE Example;

FUNCTION IncreaseTextWidth(h :HANDLE) :BOOLEAN;
BEGIN
SetTextWidth(h, GetTextWidth(h) * 1.2);
END;

BEGIN
ForEachObjectInLayer(IncreaseTextWidth, 2, 0, 4);
END;
RUN(Example);

Python

See Also

VS Functions: GetTextWidth

Version

Availability: from VectorWorks8.0

Category