4D Chart v13

CT GET LINE ATTRIBUTES

Home

 
4D Chart v13
CT GET LINE ATTRIBUTES

CT GET LINE ATTRIBUTES 


 

CT GET LINE ATTRIBUTES ( area ; scope ; pattern ; color ; lineWidth ) 
Parameter Type   Description
area  Longint in 4D Chart area
scope  Longint in Scope of the command -2 = Default -1 = All 0 = Selected objects >0 = Object ID
pattern  Integer in Receives pattern index
color  Longint in Receives color value
lineWidth  Real in Receives line width (in points)

The CT GET LINE ATTRIBUTES command returns in the variables 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. The following are the codes for the pattern parameter:



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 get the attributes of lines added to the document using the Line tool or the CT Draw line function. To get the attributes of chart lines, such as grid lines, use the commands in the Chart theme.

Example  

This example returns the selected object's line attributes in the $Pattern, $Color, and $Width variables.

 CT GET LINE ATTRIBUTES(Area;0;$Pattern;$Color;$Width)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Objects
Number: 14570

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET CHART LINE ATTRIBUTES
CT SET LINE ATTRIBUTES