LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
PushFixedState Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : PushFixedState Method



The PushFixedState Method is available in LEADTOOLS Document and Medical Imaging toolkits.

Temporarily disables the fixed state of an AnnObject.

Syntax

Visual Basic (Declaration) 
Public Overridable Function PushFixedState() As Integer
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Integer
 
value = instance.PushFixedState()
C# 
public virtual int PushFixedState()
C++/CLI 
public:
virtual int PushFixedState(); 

Return Value

size of the fixed state stack before the call to AnnObject.PushFixedState.

Example

For an example, refer to PushFixedState.

Remarks

This temporarily disables the fixed state of one or more annotations. Fixed annotations are independent of the Transform. The result is that they do not scroll or move with the underlying image.

In some instances, however, it is necessary to display a fixed annotation at a larger or smaller size than its fixed size. For example, when printing a fixed annotation, the annotation may need to be painted larger or smaller than normal. To accommodate, call AnnObject.PushFixedState on the fixed AnnObject before the call to print. After the print, call AnnObject.PopFixedState to restore the fixed state of the annotation object.

Typically, you would call PushFixedState/PopFixedState on the root AnnContainer to temporarily disable the fixed state of ALL AnnObject. Calls to AnnObject.PushFixedState and AnnObject.PopFixedState are maintained internally as a stack. This means that nested calls will behave properly. For Example,

            PushFixedState();    // Fixed state is temporarily disabled
            PushFixedState();    // Fixed state is temporarily disabled
            PopFixedState();     // Fixed state is still disabled
            PopFixedState();     // Fixed state is enabled
            

Note that PushFixedState and PopFixedState should always be called in pairs.

The following annotations cannot be fixed:

For more information, refer to AnnObject.SetFixedState.

For more information on fixed annotation objects, refer to Fixed Annotations.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features