Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function RectangleDFrom2Pts ( _
pt1 As PointD, _
pt2 As PointD _
) As RectangleD
'使用
Dim pt1 As PointD
Dim pt2 As PointD
Dim returnValue As RectangleD
returnValue = GeometryHelpers.RectangleDFrom2Pts(pt1, _
pt2)
public static RectangleD RectangleDFrom2Pts(
PointD pt1,
PointD pt2
)
public:
static RectangleD RectangleDFrom2Pts(
PointD pt1,
PointD pt2
)
public static function RectangleDFrom2Pts(
pt1 : PointD,
pt2 : PointD
) : RectangleD
Parameters
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Permissions
- 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.