RectExtensionsEnvelope Method |
Create the minimal bounding rectangle around a shape object.
Namespace:
Ptv.XServer.Controls.Map.Tools
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static Rect Envelope(
this Shape shape
)
<ExtensionAttribute>
Public Shared Function Envelope (
shape As Shape
) As Rect
public:
[ExtensionAttribute]
static Rect Envelope(
Shape^ shape
)
[<ExtensionAttribute>]
static member Envelope :
shape : Shape -> Rect
Parameters
- shape
- Type: System.Windows.ShapesShape
Shape object from which the minimal bounding rectangle has to be calculated.
Return Value
Type:
RectMinimal bounding rectangle of the shape.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Shape. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also