AnnSetTextOptions method (ILEADRasterAnnotation)
short AnnSetTextOptions(long hObject, VARIANT_BOOL bShowText, VARIANT_BOOL bShowBorder, OLE_COLOR crText, long lReserved, long lFlags, VARIANT_BOOL bSelected); | |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Sets the text options for the annotation object.
Use this method to set the text options of any annotation object that uses text. These options include changing the text color so that it is different form the border color and optionally showing or hiding the text. For the ANN_OBJECT_TEXT and the ANN_OBJECT_STAMP objects you can also optionally show or hide the border.
The hObject parameter must be one of the following types:
ANN_OBJECT_CONTAINER
ANN_OBJECT_AUTOMATION
ANN_OBJECT_TEXT
ANN_OBJECT_TEXTPOINTER
ANN_OBJECT_STAMP
ANN_OBJECT_NOTE
ANN_OBJECT_PUSHPIN
ANN_OBJECT_BUTTON
Otherwise ERROR_FEATURE_NOT_SUPPORTED is return.
Note: |
In Version 14.5, you need to first enable this function by calling the AnnSetOptions method with the ANN_OPTIONS_NEW_TEXT_OPTIONS flag set. For more information, refer to New Annotation Features of Version 14.5. |
If the value of the AnnContainer property is passed as the hObject parameter, the method will modify all the annotations in the container depending on the value of bSelected parameter.
If the value of the AnnAutomation property is passed as the hObject parameter, the method will modify the default values used whenever an annotation is created.
See Also