Text Style Properties
Functions introduced
These functions enable you to retrieve and set the properties of the specified text style. You can retrieve and set text properties such as the height, width factor, angle, slant angle, thickness, underline, mirror.
|
Note:
|
The system uses the value –1.0 for properties that use default values, or that have not been set yet.
|
The function
ProTextStyleJustificationGet() returns the horizontal justification for the text style object.
The function
ProTextStyleJustificationSet() sets the horizontal justification for the text style object using the enumerated data type
ProTextHrzJustification. The values defined by the enumerated type are as follows:
• PRO_TEXT_HRZJUST_DEFAULT—Aligns the text using the default justification. The justification selected for the first note becomes the default for all successive notes added during the current session.
• PRO_TEXT_HRZJUST_LEFT—Aligns the text style object to the left.
• PRO_TEXT_HRZJUST_CENTER—Aligns the text style object in the centre.
• PRO_TEXT_HRZJUST_RIGHT—Aligns the text style object to the right
The function
ProTextStyleVertJustificationGet() returns the vertical justification for the text style object.
The function
ProTextStyleVertJustificationSet() sets the vertical justification for the text style object using the enumerated data type
ProVerticalJustification. The values defined by the enumerated type are as follows:
• PRO_VERTJUST_DEFAULT—Aligns the text using the default justification. The justification selected for the first note becomes the default for all successive notes added during the current session.
• PRO_VERTJUST_TOP—Aligns the text style object to the top.
• PRO_VERTJUST_MIDDLE—Aligns the text style object to the middle.
• PRO_VERTJUST_BOTTOM—Aligns the text style object to the bottom.
The function
ProTextStyleColorGetWithDef() also supports default color. If the specified text style object is of default color,
PRO_COLOR_METHOD_DEFAULT will be returned.
The function
ProTextStyleColorSetWithDef() also supports default color and enables you to set the text style object to the default color.
The functions
ProTextStyleIsHeightInModelUnits() and
ProTextStyleHeightInModelUnitsSet() obtain and assign whether the text height is in relation to the model units, or a fraction of the screen size. These functions are applicable only for flat-to-screen annotations.
The function
ProSolidDefaulttextheightGet() returns the default text height for annotations and dimensions for a given solid model.
Parent topic