version 6.0
WR O GET ATTRIBUTES (area; font; size; style; color)
| Parameter | Type | Description | |
| area | Longint | 4D write area | |
| font | Integer | Receives font number | |
| size | Integer | Receives font size | |
| style | Integer | Receives font style | |
| color | Longint | Receives font color |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR Get text property command to manage the sizes, styles and colors and the
WR Get font command to manage fonts.
Description
The command WR O GET ATTRIBUTES returns into the variables font, size, style, and color the attributes of the selected text in Area. If the selected text in area contains more than one font, size, style, or color, WR O GET ATTRIBUTES returns -1 for that attribute.
font is the ID of the font in your system. This is the same value that is returned by WR O Font number. You can use the WR Font name function to determine the name of the font.
size is the size in points of the selected text.
style is a composite number that results from the addition of several style numbers. Style numbers are shown in the following list:
Note to Version 6.0 Users: The Outline style does not exist in 4D Write 6.5. Pass its value (8), will have no effect.
color is a long integer that represents the color of the text. This number can be used in the WR O SET ATTRIBUTES command to set other text to the same color.
See Also
WR Get font, WR Get text property.