CT SET CHART TEXT 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 TEXT ATTRIBUTES (area; object; partType; partSpecifics; fontID; fontSize; style; color)

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
partTypeIntegerType of object for which to get attributes
partSpecificsLongintSpecific part of object for which to get attributes
fontIDIntegerFont ID
-1 = No change
fontSizeIntegerFont size
-1 = No change
styleIntegerCode for font style
-1 = No change
colorLongintColor value
-1 = No change

Description

The CT SET CHART TEXT ATTRIBUTES command sets the attributes of the chart text 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 section Parameter Codes.

fontID is the ID of the font in your system. You can get the ID number of a font using the CT Font number function.

fontSize is the size in points of the highlighted text or text object(s).

style is a composite number that results from the addition of several style numbers. The following table lists the style numbers:

ValueStyle
0Plain
1Bold
2Italic
4Underline
8Outlined (Macintosh only)
16Shadowed (Macintosh only)

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.

See the example for the CT GET CHART TEXT ATTRIBUTES command.

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

See Also

CT GET CHART TEXT ATTRIBUTES.


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