共用方式為


RectangleD Constructors

Definition

Overloads

RectangleD(PointD, SizeD)

Initializes a new instance of the RectangleD class with the specified location and size.

RectangleD(Double, Double, Double, Double)

Initializes a new instance of the RectangleD class with the specified location and size.

RectangleD(PointD, SizeD)

Initializes a new instance of the RectangleD class with the specified location and size.

public:
 RectangleD(Microsoft::VisualStudio::Modeling::Diagrams::PointD location, Microsoft::VisualStudio::Modeling::Diagrams::SizeD size);
[System.Diagnostics.DebuggerStepThrough]
public RectangleD (Microsoft.VisualStudio.Modeling.Diagrams.PointD location, Microsoft.VisualStudio.Modeling.Diagrams.SizeD size);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.Diagrams.RectangleD : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.SizeD -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Sub New (location As PointD, size As SizeD)

Parameters

location
PointD

A PointD that represents the upper-left corner of the rectangular region.

size
SizeD

A SizeF that represents the width and height of the rectangular region.

Attributes

Applies to

RectangleD(Double, Double, Double, Double)

Initializes a new instance of the RectangleD class with the specified location and size.

public:
 RectangleD(double x, double y, double width, double height);
[System.Diagnostics.DebuggerStepThrough]
public RectangleD (double x, double y, double width, double height);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.Diagrams.RectangleD : double * double * double * double -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Sub New (x As Double, y As Double, width As Double, height As Double)

Parameters

x
Double

The x-coordinate of the upper-left corner of the rectangle.

y
Double

The y-coordinate of the upper-left corner of the rectangle.

width
Double

The width of the rectangle.

height
Double

The height of the rectangle.

Attributes

Applies to