4D Chart v13CT SET TEXT ATTRIBUTES |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT SET TEXT ATTRIBUTES
|
CT SET TEXT ATTRIBUTES ( area ; scope ; fontID ; fontSize ; style ; color ; justification ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Chart area | |||||
scope | Longint |
![]() |
Scope of the command -3 = Selected text -2 = Default -1 = All 0 = Selected objects >0 = Object ID | |||||
fontID | Integer |
![]() |
Font ID | |||||
fontSize | Integer |
![]() |
Font size (in points) | |||||
style | Integer |
![]() |
Font style | |||||
color | Longint |
![]() |
Text color | |||||
justification | Integer |
![]() |
Justification of the text 0 = left 1 = Center 2 = Right | |||||
The CT SET TEXT ATTRIBUTES command sets the font, font size, font style, color, and justification of the text specified by area and scope.
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:
Value | Style |
0 | Plain |
1 | Bold |
2 | Italic |
4 | Underline |
8 | Outlined |
16 | Shadowed |
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.
justification is the justification of the text.
Note: This command should be used to set the attributes of text added to a document using the Text tool or the CT Draw text function. To set the attributes of chart text, such as axis labels, use the commands in the Chart theme.
This example sets the selected text to Times, 14 point, Bold Italic, Green, Centered.
CT SET TEXT ATTRIBUTES(Area;0;CT Font number("Times");14;3;CT Index to color(10);1)
Product: 4D Chart
Theme: CT Objects
Number:
14569
Created: 4D Chart 1
CT GET TEXT ATTRIBUTES
CT SET CHART TEXT ATTRIBUTES