CT SET CHART 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 CHART LINE ATTRIBUTES (area; object; partType; partSpecifics; pattern; color; lineWidth)

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
partTypeIntegerType of object for which to get attributes
partSpecificsLongintSpecific part of object for which to get attributes
patternIntegerPattern number (1 to 36)
-1 = No change
colorLongintColor value
-1 = No change
lineWidthRealLine thickness in points (>= 0)
-1 = No change

Description

The CT SET CHART LINE ATTRIBUTES command sets the attributes of the line specified by area, object, partType, and partSpecifics.

partType and partSpecifics specify the exact part of the graph for which to get the attributes. The codes for these parameters are listed in the section Parameter Codes.

pattern is an integer from 1 to 36 that specifies one of the patterns available on the Pattern palette. Codes for this parameter are listed in the section Parameter Codes.

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. For more information about these functions, refer to the commands in the Utilities theme.

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

Note: To set the attributes of lines added to the document using the Line tool or the CT Draw line function, use the commands in the Object theme.

Example

This example changes the plot rectangle's line attributes for the chart specified by $ChartID. The color is changed to green, the line width is set to 3 points, and the pattern is set to solid.

   CT SET CHART LINE ATTRIBUTES (Area;$ChartID;1;0;3;CT Index to color (10);3)

See Also

CT GET CHART LINE ATTRIBUTES.


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