Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.04 KB

SetDLComponentWidth.md

File metadata and controls

53 lines (42 loc) · 1.04 KB

SetDLComponentWidth

Description

Sets the width of the nth component of the Double Line Preferences, where n is equal to index.

FUNCTION SetDLComponentWidth(
				index         : INTEGER;
				widthDistance : REAL): BOOLEAN;
def vs.SetDLComponentWidth(index, widthDistance):
    return BOOLEAN

Parameters

Name Type Description
index INTEGER The index of the component.
widthDistance REAL The width of the component.

Remarks

CJG 6-27-06

Examples

resultOK := SetDLComponentWidth(1, 1.0);
import vs

# Sets the width of the nth component of the Double Line Preferences, where n
# is equal to index.
index = 1
widthDistance = 2.0

ok = vs.SetDLComponentWidth(index, widthDistance)
if ok:
    vs.Message('SetDLComponentWidth succeeded')
else:
    vs.Message('SetDLComponentWidth failed')

See Also

VS Functions: GetDLComponentWidth

Version

Availability: from VectorWorks12.5

Category