Gets the logical bounding rectangle of this
AnnObject.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable ReadOnly Property BoundingRectangle As AnnRectangle |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnObject
Dim value As AnnRectangle
value = instance.BoundingRectangle
|
Return Value
An
AnnRectangle structure that represents the logical bounding rectangle of this
AnnObject.
Example
This example will add a new annotation rectangle object at the bounding rectangle of another annotation object, offeset by 20.
Visual Basic | Copy Code |
---|
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 |
C# | Copy Code |
---|
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); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also