Common properties

Many objects contain the same property. Some of the more common properties are color, dimension, and font.


Color property

Wordperfect Quattro Pro btnbacktotopproc Common properties


Syntax

Red, Green, Blue


Description

Each component is an integer from 0 to 255; 0 indicates that none of the hue is present; 255 indicates maximum saturation for the hue. Black is 0,0,0 and white is 255,255,255.

You can also retrieve each of these color components individually. The following table lists the argument required to read or set an individual component of a Color property. Item is the word appearing in property dialogs and property tables that describes what color is being manipulated.

The following table lists properties and syntax for Color:

Property
Syntax
Description
Item_Color
Item_Color;Red, Green, Blue
The amount of red, green, and blue in the color
Red
Item_Color.Red
The amount of red in the color
Green
Item_Color.Green
The amount of green in the color
Blue
Item_Color.Blue
The amount of blue in the color

Dimension property

Wordperfect Quattro Pro btnbacktotopproc Common properties


Syntax

X, Y, Width, Height


Description

Lets you specify the precise size and position of an object relative to the window containing it.

You can read or set an individual option of the Dimension property by using the following arguments:

The following table lists properties and syntax for the Dimension:

Property
Syntax
Description
Dimension
Dimension X, Y, Width, Height
 
X Pos
Dimension.X
The distance in pixels between the left edge of the object and the left side of the window
Y Pos
Dimension.Y
The distance in pixels between the top edge of the object and the bottom edge of the window’s title bar
Width
Dimension.Width
The width of the object in pixels
Height
Dimension.Height
The height of the object in pixels

Wordperfect Quattro Pro note Common properties

 
For drawn objects, measure Y Pos from the top of the chart background.

Font property

Wordperfect Quattro Pro btnbacktotopproc Common properties


Syntax

Typeface, PointSize, Bold, Italic, Underline, Strikeout


Description

Lets you specify the font attributes of the object. You can read or set an individual option of a Font property by using the following arguments.

The following table lists properties, arguments, and syntax for the Font:

Property
Argument
Syntax
Item Font
Item_Font
Typeface, PointSize, Bold, Italic, Underline, Strikeout
Typeface
Item_Font.Typeface
Typeface
Point Size
Item_Font.Point_Size
PointSize
Bold
Item_Font.Bold
Yes | No
Italic
Item_Font.Italic
Yes | No
Underline
Item_Font.Underline
Yes | No
Strikeout
Item_Font.Strikeout
Yes | No


Example

{Setproperty Cell_Font;”Arial;10;No;No;No;Yes”}

Common properties