grDispAttr object
The PowerBuilder class grDispAttr is used to specify the appearance
of text objects on a graph. There are grDispAttr objects for graph Titles,
Legends, Pie Graph text, and two (DispAttr and LabelDispAttr) for each of
the three axes (Category, Series, and Value) in a graph.
To refer to a property of a grDispAttr property, use this
syntax:
|
1 |
graphcontrolname.axisname.grdispattrname.property |
For example:
|
1 2 |
gr_1.Series.DispAttr.Italic gr_1.Category.LabelDispAttr.DisplayExpression |
A grDispAttr object has no events.
Properties
|
grDispAttr property |
Datatype |
Description |
|---|---|---|
|
Alignment (enumerated) |
Specifies the alignment of the text. Values Center! Justify! Left! Right! |
|
|
Boolean |
Specifies whether the text element should be TRUE — Autosize. FALSE — |
|
|
Long |
Specifies the numeric value of the background |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
String |
An expression whose value is the label for the |
|
|
Integer |
Specifies the rotation for the baseline of the text |
|
|
String |
Specifies a typeface name (for example, arial or |
|
|
FillPattern (enumerated) |
Specifies the fill pattern for the text. Values BDiagonal! Diamond! FDiagonal! Horizontal! Solid! Square! Vertical! FDiagonal! |
|
|
FontCharSet (enumerated) |
Specifies the font character set to be used. For a |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) for the AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (character spacing) for the Default! Fixed! Variable! |
|
|
String |
Specifies the display format for the |
|
|
Boolean |
Specifies whether the text is italic. Values TRUE — Text is italic. FALSE — |
|
|
Long |
Specifies the color of the text. The color is a |
|
|
Integer |
Specifies the point size of the text. For backward |
|
|
Boolean |
Specifies whether the text is underlined. Values TRUE — Text is underlined. FALSE |
|
|
Integer |
Specifies the stroke weight of the text. Sample |
Functions
|
grDispAttr function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the user |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Object |
Returns the type of the user object. |