LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

BoundingRectangle Property (AnnObject)

Example 





Gets the logical bounding rectangle of this AnnObject.
Syntax
public virtual AnnRectangle BoundingRectangle {get;}
'Declaration
 
Public Overridable ReadOnly Property BoundingRectangle As AnnRectangle
'Usage
 
Dim instance As AnnObject
Dim value As AnnRectangle
 
value = instance.BoundingRectangle
public virtual AnnRectangle BoundingRectangle {get;}
 get_BoundingRectangle(); 
public:
virtual property AnnRectangle BoundingRectangle {
   AnnRectangle get();
}

Property Value

An AnnRectangle structure that represents the logical bounding rectangle of this AnnObject.
Remarks
This method returns the logical bounding rectangle of this AnnObject. This rectangle is the bounding rectangle of the graphics path returned from the GetGraphicsPath method with a AnnGetGraphicsPathMode value of Bound. This bounding rectangle is also used to calculate the logical Origin of this AnnObject.
Example
 
Public Sub AnnObject_BoundingRectangle(ByVal obj As AnnObject)
   Dim rc As AnnRectangle = obj.BoundingRectangle
   Dim rectObj As AnnRectangleObject = New AnnRectangleObject()
   rc.Offset(20, 20)
   rectObj.Bounds = rc
   rectObj.Pen = New AnnPen(Color.Red, New AnnLength(3, AnnUnit.Pixel))
   rectObj.Name = "New Rectangle"
   obj.Container.Objects.Add(rectObj)
End Sub
public void AnnObject_BoundingRectangle(AnnObject obj)
{
   AnnRectangle rc = obj.BoundingRectangle;
   AnnRectangleObject rectObj = new AnnRectangleObject();
   rc.Offset(20, 20);
   rectObj.Bounds = rc;
   rectObj.Pen = new AnnPen(Color.Red, new AnnLength(3, AnnUnit.Pixel));
   rectObj.Name = "New Rectangle";
   obj.Container.Objects.Add(rectObj);
}
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.