Leadtools.Windows.Annotations Namespace : AnnRectangleObject Class |
public class AnnRectangleObject : AnnObject, IAnnHeader, IAnnObject, IAnnRectangle
'Declaration Public Class AnnRectangleObject Inherits AnnObject Implements IAnnHeader, IAnnObject, IAnnRectangle
'Usage Dim instance As AnnRectangleObject
public sealed class AnnRectangleObject : IAnnHeader, IAnnObject, IAnnRectangle
function Leadtools.Windows.Annotations.AnnRectangleObject()
public ref class AnnRectangleObject : public AnnObject, IAnnHeader, IAnnObject, IAnnRectangle
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.
For XAML example, refer to AnnGroupObject.
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
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); }
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); }
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
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