AnnRestrictToContainer property (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool AnnRestrictToContainer[HANNOBJECT hObject]

Delphi Syntax

AnnRestrictToContainer [hObject: HANNOBJECT ]: Boolean

Overview

Refer to Implementing Annotations.

Remarks

Gets or sets a value that indicates whether the specified annotation object(s) is (are) restricted to the container. Possible values are:

Setting

Description

TRUE

Restrict the object to the container.

FALSE

Do not restrict the object to the container.

If an object is restricted to the container, then no part of that object can be moved outside of the container using automation.

You must set the AnnFlags property before setting this property. Possible values for the AnnFlags property, when used with this property, are:

0

ANNFLAG_SELECTED

ANNFLAG_NOTTHIS

ANNFLAG_RECURSE

ANNFLAG_NOTCONTAINER

ANNFLAG_NOINVALIDATE

ANNFLAG_CHECKMENU

See Also

Elements:

AnnFlags property, AnnHitTestExt method, AnnRotateAngle property

Topics:

Annotations: Object Manipulation