LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

GetFixedState Method (AnnObject)

Example 





Determines if this AnnObject is in a fixed state.
Syntax
public virtual bool GetFixedState()
'Declaration
 
Public Overridable Function GetFixedState() As Boolean
'Usage
 
Dim instance As AnnObject
Dim value As Boolean
 
value = instance.GetFixedState()
public virtual bool GetFixedState()
 function Leadtools.Annotations.AnnObject.GetFixedState()
public:
virtual bool GetFixedState(); 

Return Value

true if AnnObject is in a fixed state; false otherwise
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.
Example
 
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
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);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.