Sets the fore and back colors of the left and right side pens of the component at index in the Double Line Preferences.
FUNCTION SetDLComponentPenColors(
index : INTEGER;
leftPenForeColor : INTEGER;
leftPenBackColor : INTEGER;
rightPenForeColor : INTEGER;
rightPenBackColor : INTEGER): BOOLEAN;def vs.SetDLComponentPenColors(index, leftPenForeColor, leftPenBackColor, rightPenForeColor, rightPenBackColor):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| index | INTEGER | The index of the component. |
| leftPenForeColor | INTEGER | The fore color of the left pen. |
| leftPenBackColor | INTEGER | The back color of the left pen. |
| rightPenForeColor | INTEGER | The fore color of the right pen. |
| rightPenBackColor | INTEGER | The back color of the right pen. |
CJG 3-23-07
resultOK := SetDLComponentPenColors(1, 2, 3, 10, 5);import vs
# Sets the fore and back colors of the left and right side pens of the
# component at index in the Double Line Preferences.
index = 1
leftPenForeColor = 5
leftPenBackColor = 5
rightPenForeColor = 5
rightPenBackColor = 5
ok = vs.SetDLComponentPenColors(index, leftPenForeColor, leftPenBackColor, rightPenForeColor, rightPenBackColor)
if ok:
vs.Message('SetDLComponentPenColors succeeded')
else:
vs.Message('SetDLComponentPenColors failed')VS Functions: GetDLComponentPenColors
Availability: from VectorWorks13.0