RectangleD Structure

 

Stores a set of four doubles that represent the location and size of a rectangle.

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

[SerializableAttribute]
[TypeConverterAttribute((RectangleDConverter^::typeid))]
public value struct RectangleD

NameDescription
System_CAPS_pubmethodRectangleD(Double, Double, Double, Double)

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

System_CAPS_pubmethodRectangleD(PointD, SizeD)

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

NameDescription
System_CAPS_pubpropertyBottom

Gets the y-coordinate of the bottom edge of this RectangleD structure

System_CAPS_pubpropertyCenter

Gets the coordinates of the center of this RectangleD structure.

System_CAPS_pubpropertyHeight

Gets or sets the height of this RectangleD structure.

System_CAPS_pubpropertyIsEmpty

Tests whether all numeric properties of this RectangleD have values of zero.

System_CAPS_pubpropertyLeft

Gets the x-coordinate of the left edge of this RectangleD structure.

System_CAPS_pubpropertyLocation

Gets or sets the coordinates of the upper-left corner of this RectangleD structure.

System_CAPS_pubpropertyRight

Gets the x-coordinate of the right edge of this RectangleD structure.

System_CAPS_pubpropertySize

Gets or sets the size of this RectangleD.

System_CAPS_pubpropertyTop

Gets the y-coordinate of the top edge of this RectangleD structure.

System_CAPS_pubpropertyWidth

Gets or sets the width of this RectangleD structure.

System_CAPS_pubpropertyX

Gets or sets the x-coordinate of the upper-left corner of this RectangleD structure.

System_CAPS_pubpropertyY

Gets or sets the y-coordinate of the upper-left corner of this RectangleD structure.

NameDescription
System_CAPS_pubmethodContains(Double, Double)

Determines if the specified point is contained within this RectangleD structure.

System_CAPS_pubmethodContains(PointD)

Determines if the specified point is contained within this RectangleD structure.

System_CAPS_pubmethodContains(RectangleD)

Determines if the rectangular region represented by rectangle is entirely contained within this RectangleD structure.

System_CAPS_pubmethodContainsX(Double)

Determines if the X coordinate is contained within this RectangleD structure.

System_CAPS_pubmethodContainsY(Double)

Determines if the Y coordinate is contained within this RectangleD structure.

System_CAPS_pubmethodEquals(Object^)

Overridden. Tests whether obj is a RectangleD with the same location and size of this RectangleD.(Overrides ValueType::Equals(Object^).)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for this RectangleD structure. For information about the use of hash codes, see Object.GetHashCode.(Overrides ValueType::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInflate(Double, Double)

A copy in which the edges are moved outwards by specified distances, and the center is in the same position.

System_CAPS_pubmethodSystem_CAPS_staticInflate(RectangleD, Double, Double)

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

System_CAPS_pubmethodInflate(SizeD)

A copy in which the edges are moved outwards by the specified distances, and the center is unmoved.

System_CAPS_pubmethodIntersect(RectangleD)

Replaces this RectangleD structure with the intersection of itself and the specified RectangleD structure.

System_CAPS_pubmethodSystem_CAPS_staticIntersect(RectangleD, RectangleD)

Returns a RectangleD structure that represents the intersection of two rectangles. If there is no intersection, null is returned.

System_CAPS_pubmethodIntersectsWith(RectangleD)

Determines if this rectangle intersects with rectangle.

System_CAPS_pubmethodIsOnPerimeter(PointD)

System_CAPS_pubmethodOffset(Double, Double)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodOffset(PointD)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodPerimeterTranslation(Double, Double)

System_CAPS_pubmethodPerimeterTranslation(PointD)

System_CAPS_pubmethodSystem_CAPS_staticToRectangleF(RectangleD)

Converts the specified RectangleD to a RectangleF.

System_CAPS_pubmethodToString()

Returns a string formatted like this: X=x, Y=y, Width=width, Height=height(Overrides ValueType::ToString().)

System_CAPS_pubmethodSystem_CAPS_staticUnion(RectangleD, RectangleD)

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

Represents an instance of the RectangleD with its numeric properties initialized to zero.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(RectangleD, RectangleD)

Tests whether two RectangleD structures have equal location and size.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(Rectangle to RectangleD)

System_CAPS_puboperatorSystem_CAPS_staticImplicit(RectangleF to RectangleD)

System_CAPS_puboperatorSystem_CAPS_staticInequality(RectangleD, RectangleD)

Tests whether two RectangleD structures differ in location or size.

A rectangle is defined by its width, height, and upper-left corner.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: