LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

FixedState Property (AnnObject)

Example 





The fixed state of this object. This is a dependency property. .NET support Silverlight support
Syntax
public AnnFixedStateOperations FixedState {get; set;}
'Declaration
 
Public Property FixedState As AnnFixedStateOperations
'Usage
 
Dim instance As AnnObject
Dim value As AnnFixedStateOperations
 
instance.FixedState = value
 
value = instance.FixedState
public AnnFixedStateOperations FixedState {get; set;}
 get_FixedState();
set_FixedState(value);
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
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
Copy CodeCopy 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
private void SetNoteObjectsFixedState(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnNoteObject)
      {
         obj.FixedState = AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming;
      }
   }
}
private void SetNoteObjectsFixedState(AnnContainer container)
{
   foreach(AnnObject obj in container.Children)
   {
      if(obj is AnnNoteObject)
      {
         obj.FixedState = AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming;
      }
   }
}
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: 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.