Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SetFixedState Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : SetFixedState Method




fixedState
true to make the AnnObject fixed; false to allow it to move freely
adjust
true to automatically adjust the AnnObject when changing the fixed state; false to have no adjusting performed.
Sets the fixed state of an AnnObject.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetFixedState( _
   ByVal fixedState As Boolean, _
   ByVal adjust As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim fixedState As Boolean
Dim adjust As Boolean
 
instance.SetFixedState(fixedState, adjust)
C# 
public virtual void SetFixedState( 
   bool fixedState,
   bool adjust
)
Managed Extensions for C++ 
public: virtual void SetFixedState( 
   bool fixedState,
   bool adjust
) 
C++/CLI 
public:
virtual void SetFixedState( 
   bool fixedState,
   bool adjust
) 

Parameters

fixedState
true to make the AnnObject fixed; false to allow it to move freely
adjust
true to automatically adjust the AnnObject when changing the fixed state; false to have no adjusting performed.

Example

For an example, refer to GetFixedState.

Remarks

A fixed annotation does not move or change size when the annotation container scalars and offsets are changed. The effect is that the annotation does not move or change size when the underlying image is scrolled or zoomed.

Passing true for the 'bAdjust' parameter automatically adjusts size and location of the AnnObject before fixing or un-fixing the annotation object. The result is the annotation object will not jump around as you change its fixed state.

If you pass false for the 'bAdjust' parameter, the AnnObject can move or resize if the AnnContainer has a Transform other than the identity matrix.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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