Determines if this AnnObject is in a fixed state.
public virtual bool GetFixedState()
Public Overridable Function GetFixedState() As Boolean
public:
virtual bool GetFixedState();
true if AnnObject is in a fixed state; false otherwise
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.
This sample examines the fixed state of all objects in a container and sets the fixed state to false.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.WinForms;
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);
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.WinForms
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
Products |
Support |
Feedback: GetFixedState Method (AnnObject) - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.