LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
FixedState Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObject Class : FixedState Property



The fixed state of this object. This is a dependency property.Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property FixedState As AnnFixedStateOperations
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As AnnFixedStateOperations
 
instance.FixedState = value
 
value = instance.FixedState
C# 
public AnnFixedStateOperations FixedState {get; set;}
C++/CLI 
public:
property AnnFixedStateOperations FixedState {
   AnnFixedStateOperations get();
   void set (    AnnFixedStateOperations value);
}

Property Value

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

Example

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

Visual BasicCopy Code
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
C#Copy Code
private void SetNoteObjectsFixedState(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnNoteObject)
      {
         obj.FixedState = AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming;
      }
   }
}
SilverlightCSharpCopy Code
private void SetNoteObjectsFixedState(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnNoteObject)
      {
         obj.FixedState = AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming;
      }
   }
}
SilverlightVBCopy Code
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

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.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

FixedState requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.