Error processing SSI file
LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)

Show in webframe

AnnRectangleObject Class






Members 
Defines an annotation rectangle object.
Object Model
Syntax
public class AnnRectangleObject : AnnObject, IAnnHeaderIAnnObjectIAnnRectangle  
'Declaration
 
Public Class AnnRectangleObject 
   Inherits AnnObject
   Implements IAnnHeaderIAnnObjectIAnnRectangle 
'Usage
 
Dim instance As AnnRectangleObject

            

            
public ref class AnnRectangleObject : public AnnObject, IAnnHeaderIAnnObjectIAnnRectangle  
Remarks

The rectangle annotation object is a simple rectangle, 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.

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.

Copy Code  
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations

Private Sub AnnRectangleObject_AnnRectangleObject(ByVal container As AnnContainer)
   Dim rect As AnnRectangleObject = New AnnRectangleObject()
   rect.Stroke = Colors.Red
   rect.StrokeThickness = 1.0
   rect.Fill = Colors.White
   rect.Rect = New Rect(100, 200, 400, 600)
   container.Children.Add(rect)
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;

private void AnnRectangleObject_AnnRectangleObject(AnnContainer container)
{
   AnnRectangleObject rect = new AnnRectangleObject();
   rect.Stroke = Colors.Red;
   rect.Fill = Colors.White;
   rect.Rect = new Rect(100, 200, 400, 600);
   rect.StrokeThickness = 1.0;
   container.Children.Add(rect);
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;

private void AnnRectangleObject_AnnRectangleObject(AnnContainer container)
{
   AnnRectangleObject rect = new AnnRectangleObject();
   rect.Stroke = Colors.Red;
   rect.Fill = Colors.White;
   rect.Rect = new Rect(100, 200, 400, 600);
   rect.StrokeThickness = 1.0;
   container.Children.Add(rect);
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations

Private Sub AnnRectangleObject_AnnRectangleObject(ByVal container As AnnContainer)
   Dim rect As AnnRectangleObject = New AnnRectangleObject()
   rect.Stroke = Colors.Red
   rect.Fill = Colors.White
   rect.Rect = New Rect(100, 200, 400, 600)
   rect.StrokeThickness = 1.0
   container.Children.Add(rect)
End Sub
Requirements

Target Platforms

See Also

Reference

AnnRectangleObject Members
Leadtools.Windows.Annotations Namespace

Error processing SSI file
   Leadtools.Windows.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features