Leadtools.Annotations Namespace > AnnObject Class : GetFixedState Method |
public virtual bool GetFixedState()
'Declaration Public Overridable Function GetFixedState() As Boolean
public: virtual bool GetFixedState();
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
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); }