Int32Rect Structure
TOC
Collapse the table of content
Expand the table of content

Int32Rect Structure

 

Describes the width, height, and location of an integer rectangle.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

[SerializableAttribute]
[TypeConverterAttribute(typeof(Int32RectConverter))]
public struct Int32Rect : IFormattable

NameDescription
System_CAPS_pubmethodInt32Rect(Int32, Int32, Int32, Int32)

Initializes a new instance of an Int32Rect with the specified X and Y coordinates and the specified Width and Height.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets the empty rectangle, a special value that represents a rectangle with no position or area.

System_CAPS_pubpropertyHasArea

Gets a value that indicates whether the Width and Height properties of the Int32Rect are greater than 0.

System_CAPS_pubpropertyHeight

Gets or sets the height of the rectangle.

System_CAPS_pubpropertyIsEmpty

Gets a value indicating whether the rectangle is empty.

System_CAPS_pubpropertyWidth

Gets or sets the width of the rectangle.

System_CAPS_pubpropertyX

Gets or sets the x-coordinate of the top-left corner of the rectangle.

System_CAPS_pubpropertyY

Gets or sets the y-coordinate of the top-left corner of the rectangle.

NameDescription
System_CAPS_pubmethodEquals(Int32Rect)

Determines whether the specified rectangle is equal to this rectangle.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Int32Rect, Int32Rect)

Determines whether the specified rectangles are equal.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified rectangle is equal to this rectangle.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Creates a hash code from this rectangle's X, Y, Width, and Height values.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Creates an Int32Rect structure from the specified String representation.

System_CAPS_pubmethodToString()

Creates a string representation of this Int32Rect.(Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(IFormatProvider)

Creates a string representation of this Int32Rect based on the supplied IFormatProvider.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(Int32Rect, Int32Rect)

Compares two rectangles for exact equality.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Int32Rect, Int32Rect)

Compares two rectangles for inequality.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIFormattable.ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

<object property="X,Y,Width,Height"/>
- or 
<object property="Empty"/>

X

System.Int32

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

Y

System.Int32

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

Width

System.Int32

The width of the rectangle.

Height

System.Int32

The height of the rectangle.

You can also use whitespace instead of commas to delimit values. Whitespace can also be used with a comma delimited value set.

.NET Framework
Available since 3.0

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:
© 2016 Microsoft