Condividi tramite


RectangleD.Inflate Method (RectangleD, Double, Double)

A copy in which the edges are moved outwards by the specified distances. The center of the copy is not moved.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Shared Function Inflate ( _
    rectangle As RectangleD, _
    x As Double, _
    y As Double _
) As RectangleD
public static RectangleD Inflate(
    RectangleD rectangle,
    double x,
    double y
)
public:
static RectangleD Inflate(
    RectangleD rectangle, 
    double x, 
    double y
)
static member Inflate : 
        rectangle:RectangleD * 
        x:float * 
        y:float -> RectangleD
public static function Inflate(
    rectangle : RectangleD, 
    x : double, 
    y : double
) : RectangleD

Parameters

  • x
    Type: System.Double

    The amount to move the left and right borders away from the center. The total width is increased by 2x.

  • y
    Type: System.Double

    The amount to move the top and bottom borders away from the center. The total height is increased by 2y.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

.NET Framework Security

See Also

Reference

RectangleD Structure

Inflate Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace