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




Determines if this AnnObject is in a fixed state.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetFixedState() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Boolean
 
value = instance.GetFixedState()
C# 
public virtual bool GetFixedState()
Managed Extensions for C++ 
public: virtual bool GetFixedState(); 
C++/CLI 
public:
virtual bool GetFixedState(); 

Return Value

true if AnnObject is in a fixed state; false otherwise

Example

This sample examines the fixed state of all objects in a container and sets the fixed state to false

Visual BasicCopy Code
Private Sub AnnotationObject_GetFixedState(ByVal annContainer As AnnContainer)
   Dim fixedStateChanged As Boolean = False
   For Each obj As AnnObject In annContainer.Objects
      If obj.GetFixedState() Then
         obj.SetFixedState(False, True)
         fixedStateChanged = True
      End If
   Next obj
   Dim s As String = String.Format("Some objects in the container had 'fixed' changed to 'unfixed' : {0}", fixedStateChanged)
   MessageBox.Show(s)
End Sub
C#Copy Code
void AnnotationObject_GetFixedState(AnnContainer annContainer) 

   bool fixedStateChanged = false; 
   foreach (AnnObject obj in annContainer.Objects) 
   { 
      if (obj.GetFixedState()) 
      { 
         obj.SetFixedState(false, true); 
         fixedStateChanged = true; 
      } 
   } 
   string s = string.Format("Some objects in the container had 'fixed' changed to 'unfixed' : {0}", fixedStateChanged); 
   MessageBox.Show(s); 
}

Remarks

An AnnObject is in a fixed state if it is fixed, even if the fixed state has been temporarily disabled by calling PushFixedState. Fixed annotations are independent of the Transform. The result is that they do not scroll or move with the underlying image.

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