API Documentation
>
Graphics and model display
>
Object ProText
> Function ProTextAttributesCurrentGet
Function ProTextAttributesCurrentGet
Description
Retrieves the current text attributes. If the current text attributes have not already been modified by Creo Parametric TOOLKIT, this function returns the default text parameters.
The text attributes apply only to text that is output by
ProGraphicsTextDisplay
().
Replacement in Object TOOLKIT:
pfcDisplay::CurrentFont
Synopsis
#include <
ProGraphic.h
>
ProError
ProTextAttributesCurrentGet
(
ProTextAttribute
* attribute
/* (Out)
The current text attributes
*/
)
Returns
PRO_TK_NO_ERROR
The function successfully retrieved the information.
PRO_TK_BAD_INPUTS
The attribute argument is NULL.
PRO_TK_E_NOT_FOUND
The attributes were not set.
See Also
ProTextFontIdCurrentSet
ProTextHeightCurrentSet
ProTextWidthFactorCurrentSet
ProTextRotationAngleCurrentSet
ProTextSlantAngleCurrentSet
ProGraphicsTextDisplay
Sample Code References
pt_examples ( TestDrawTbl.c )
pt_examples ( TestText.c )
pt_examples ( UtilTree.c )
pt_userguide ( UgGraphPolyLineDraw.c )
User Guide References
Controlling Text Attributes:ProTextAttributesCurrentGet
Was this helpful?
This site works best with JavaScript enabled