Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnRectangleObject Class
See Also  Members   Example 
Leadtools.Windows.Annotations Namespace : AnnRectangleObject Class





Defines an annotation rectangle object.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnRectangleObject 
   Inherits AnnObjectBase
Visual Basic (Usage)Copy Code
Dim instance As AnnRectangleObject
C# 
[SerializableAttribute()]
public class AnnRectangleObject : AnnObjectBase 
C++/CLI 
[SerializableAttribute()]
public ref class AnnRectangleObject : public AnnObjectBase 
XAML Object Element Usage 

<AnnRectangleObject .../>

XAML Object Element Usage 

<AnnRectangleObject .../>

Example

For XAML example, refer to AnnGroupObject.

This example creates a new rectangle object with top, left at 100, 200, width, height of 400, 600 pixels, a red stroke and a white brush and then adds it to a container.

Visual BasicCopy Code
Private Sub AnnRectangleObject_AnnRectangleObject(ByVal container As AnnContainer)
  Dim rect As AnnRectangleObject = New AnnRectangleObject()
  rect.Stroke = Brushes.Red
  rect.StrokeThickness = 1.0
  rect.Fill = Brushes.White
  rect.Left = 100
  rect.Top = 200
  rect.Width = 400
  rect.Height = 600
  container.Children.Add(rect)
End Sub
C#Copy Code
private void AnnRectangleObject_AnnRectangleObject(AnnContainer container) 

   AnnRectangleObject rect = new AnnRectangleObject(); 
   rect.Stroke = Brushes.Red; 
   rect.StrokeThickness = 1.0; 
   rect.Fill = Brushes.White; 
   rect.Left = 100; 
   rect.Top = 200; 
   rect.Width = 400; 
   rect.Height = 600; 
   container.Children.Add(rect); 
}

Remarks

The rectangle annotation object is a simple Top,Left, Width, Height, a stroke and a fill. For more information about the rectangle annotation object refer to WPF AnnRectangleObject. For more information about the automated rectangle annotation object, refer to WPF Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Annotations.AnnObjectBase
                     Leadtools.Windows.Annotations.AnnRectangleObject
                        Leadtools.Windows.Annotations.AnnEllipseObject
                        Leadtools.Windows.Annotations.AnnEncryptObject
                        Leadtools.Windows.Annotations.AnnHiliteObject
                        Leadtools.Windows.Annotations.AnnImageObject
                        Leadtools.Windows.Annotations.AnnRedactionObject
                        Leadtools.Windows.Annotations.AnnRubberStampObject
                        Leadtools.Windows.Annotations.AnnSelectObject
                        Leadtools.Windows.Annotations.AnnTextObject

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

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