←Select platform

FixedState Property (AnnObject)

Summary

The fixed state of this object. This is a dependency property.

Syntax

C#
VB
C++

Property Value

One or more AnnFixedStateOperations enumeration members that specify the current object fixed state. Default value is AnnFixedStateOperations.None

Remarks

The LEADTOOLS Annotation toolkit supports fixing the object size and location when the container zooms or scrolls. To fix an object, change the AnnObject.FixedState property from the default AnnFixedStateOperations.None to the desired state.

For more information on fixed annotation objects, refer to WPF Fixed Annotations.

Example

This example will loop through all the objects in a container and set all note objects to be fixed in scrolling and zooming.

C#
VB
Silverlight C#
Silverlight VB
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
 
Private Sub SetNoteObjectsFixedState(ByVal container As AnnContainer) 
   For Each obj As AnnObject In container.Children 
      If TypeOf (obj) Is AnnNoteObject Then 
         obj.FixedState = AnnFixedStateOperations.Scrolling Or AnnFixedStateOperations.Zooming 
      End If 
   Next 
End Sub 
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Demos; 
using Leadtools.Help; 
 
private void SetNoteObjectsFixedState(AnnContainer container) 
{ 
   foreach(AnnObject obj in container.Children) 
   { 
      if(obj is AnnNoteObject) 
      { 
         obj.FixedState = AnnFixedStateOperations.Scrolling |   AnnFixedStateOperations.Zooming; 
      } 
   } 
} 
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Examples; 
 
private void SetNoteObjectsFixedState(AnnContainer container) 
{ 
   foreach(AnnObject obj in container.Children) 
   { 
      if(obj is AnnNoteObject) 
      { 
         obj.FixedState = AnnFixedStateOperations.Scrolling |   AnnFixedStateOperations.Zooming; 
      } 
   } 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
 
Private Sub SetNoteObjectsFixedState(ByVal container As AnnContainer) 
   For Each obj As AnnObject In container.Children 
      If TypeOf obj Is AnnNoteObject Then 
         obj.FixedState = AnnFixedStateOperations.Scrolling Or AnnFixedStateOperations.Zooming 
      End If 
   Next obj 
End Sub 

Requirements

Target Platforms

See Also

Reference

AnnObject Class

AnnObject Members

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Windows.Annotations Assembly
Click or drag to resize