AnnSetTextOptions method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

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:

image\sqrblit.gif ANN_OBJECT_CONTAINER

image\sqrblit.gif ANN_OBJECT_AUTOMATION

image\sqrblit.gif ANN_OBJECT_TEXT

image\sqrblit.gif ANN_OBJECT_TEXTPOINTER

image\sqrblit.gif ANN_OBJECT_STAMP

image\sqrblit.gif ANN_OBJECT_NOTE

image\sqrblit.gif ANN_OBJECT_PUSHPIN

image\sqrblit.gif 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

Elements:

AnnAutoSnapCursor property, AnnCalibrateRuler method, AnnFillMode property, AnnGetFillModeExt method, AnnGetOptions method, AnnGetRotateOptions method, AnnGetTextOptions method, AnnSetFillModeExt method, AnnSetOptions method, AnnSetRotateOptions method, AnnSetTextOptions method, AnnShowBorder property, AnnShowRotateHandles property, AnnShowText property, AnnTextColor property, AnnTextEdit method, AnnGetTextOptions method, AnnSetText method, AnnGetText method, AnnTextAlign property, AnnTextRotate property, AnnSetOptions method, AnnFillMode property, AnnAlpha property, AnnShowText property, AnnShowBorder property, AnnTextColor property

Topics:

New Annotation Features of Version 14.5

 

Annotations (Document/Medical only): Object Manipulation