CT SET LINE ATTRIBUTES

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT SET LINE ATTRIBUTES (area; scope; pattern; color; lineWidth)

ParameterTypeDescription
areaLongint4D Chart area
scopeLongintScope of the command
-2 = Default
-1 = All
0 = Selected objects
>0 = Object ID
patternIntegerPattern (0 to 36)
-1 = No change
colorLongintColor value
-1 = No change
lineWidthRealLine width (in points)
-1 = No change

Description

The CT SET LINE ATTRIBUTES command changes the line attributes for the object(s) in area described by scope. For objects other than lines, the line attributes apply to the object's border.

pattern is the number of the pattern in the palette. Codes for the pattern parameter are as follows:

color is a long integer that specifies the color of the object. You can specify a value for the color parameter by using the CT Index to color or the CT RGB to color functions.

lineWidth is the width of the line, measured in points.

Note: Use this command to set the attributes of lines added to the document using the Line tool or the CT Draw line function. To set the attributes of chart lines, such as grid lines, use the commands in the Chart theme.

Example

This example sets the selected object's line attributes to solid, blue, 3 points.

   CT SET LINE ATTRIBUTES (Area;0;3;CT Index to color (6);3)

See Also

CT GET LINE ATTRIBUTES, CT SET CHART LINE ATTRIBUTES, CT SET LINES ATTRIBUTES.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next