DispAttr.fontproperty DataWindow object property
Description
Settings for the appearance of various text components of
a graph.
Controls
Properties of Graph controls, as noted throughout this discussion
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.<span>graphname</span>.<span>property</span>.DispAttr.<span>fontproperty</span> |
Describe and Modify argument:
|
1 |
"<span>graphname</span>.<span>property</span>.DispAttr.<span>fontproperty </span>{ = <span>value</span> }" |
|
Parameter |
Description |
||
|---|---|---|---|
|
graphname |
The Graph control in a DataWindow for |
||
|
property |
A text component of the graph, such as You can also set font properties for the label of an axis
|
||
|
fontproperty |
A property that controls the appearance |
||
|
value |
The value to be assigned to fontproperty. Value can |
|
Property for DispAttr |
Value |
|---|---|
|
Alignment |
(exp) The alignment Values are:
Painter: Alignment option. Alignment for axis labels and text not supported by Render3D |
|
AutoSize |
(exp) Whether the Values are:
Painter: Autosize check box. |
|
BackColor |
(exp) A long value Painter: BackColor option. |
|
DisplayExpression |
An expression whose value is the label Painter: Display Expression option. |
|
Font.CharSet |
(exp) An integer Values are:
Painter: FontCharSet option. |
|
Font.Escapement |
(exp) An integer Painter: Escapement option. |
|
Font.Face |
(exp) A string specifying Painter: FaceName option. |
|
Font.Family |
(exp) An integer Values are:
Painter: Family option. |
|
Font.Height |
(exp) An integer Painter: Size option, specified in points. |
|
Font.Italic |
(exp) Whether the Values are:
Painter: Italic option. |
|
Font.Orientation |
Same as Escapement. |
|
Font.Pitch |
(exp) The pitch Values are:
Painter: Pitch option. |
|
Font.Strikethrough |
(exp) Whether the Values are:
Painter: Strikeout option. |
|
Font.Underline |
(exp) Whether the Values are:
Painter: Underline option. |
|
Font.Weight |
(exp) An integer Painter: Set indirectly using the Bold option. |
|
Font.Width |
(exp) An integer Painter: Width option. |
|
Format |
(exp) A string containing Painter: Format option. |
|
TextColor |
(exp) A long specifying Painter: TextColor option. |
Usage
In the painter
Select the control and set values in the Properties view,
Text tab. Settings apply to the selected item in the Text Object
list box.
Examples
|
1 |
setting = dw1.Object.Category.LabelDispAttr.Font.Face |
|
1 |
dw1.Object.Category.LabelDispAttr.Font.Face = "Arial" |
|
1 |
setting = &<br>   dw1.Describe("Category.LabelDispAttr.Font.Face")<br> <br>dw1.Modify("gr_1.Category.LabelDispAttr.Font.Face= &<br> 'Arial'")<br>dw1.Modify("gr_1.Title.DispAttr.DisplayExpression=" &<br> "'Title + ~"~n~" + Today()'") |