CT GET 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 GET 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
fontIDIntegerReceives the font ID
fontSizeIntegerReceives the font size
styleIntegerReceives font style
colorLongintReceives the color value

Description

The CT GET CHART TEXT ATTRIBUTES command gets 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 the 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.

Note: To get 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.

Example

This example checks to see whether the text attributes of the Category axis title have been customized, and if so, resets them.

   CT GET CHART TEXT ATTRIBUTES (Area;$ChartID;8;100;$FontID;$FontSize;
      $Style;$Color)
   If (($FontSize#10) | ($FontID#CT Font number ("Geneva")) | ($Color#CT Index to color (10)))
      CT SET CHART TEXT ATTRIBUTES (Area;$ChartID;5; 0;CT Font number ("Geneva");10;1;CT Index to color (10))
   End if 

See Also

CT SET CHART TEXT ATTRIBUTES.


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