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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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
rectangle
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe RectangleD to be copied. This rectangle is not modified.
x
Type: DoubleThe amount to move the left and right borders away from the center. The total width is increased by 2x.
y
Type: DoubleThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.