Int32Rect Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the width, height, and location of an integer rectangle.
public value class Int32Rect : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Int32RectConverter))]
[System.Serializable]
public struct Int32Rect : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Int32RectConverter))]
public struct Int32Rect : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Int32RectConverter))>]
[<System.Serializable>]
type Int32Rect = struct
interface IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Int32RectConverter))>]
type Int32Rect = struct
interface IFormattable
Public Structure Int32Rect
Implements IFormattable
- Inheritance
- Attributes
- Implements
<object property="X,Y,Width,Height"/>
- or
<object property="Empty"/>
The x-coordinate of the top-left corner of the rectangle.
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 white space instead of commas to delimit values. White space can also be used with a comma delimited value set.
Int32Rect(Int32, Int32, Int32, Int32) |
Initializes a new instance of an Int32Rect with the specified X and Y coordinates and the specified Width and Height. |
Empty |
Gets the empty rectangle, a special value that represents a rectangle with no position or area. |
Has |
Gets a value that indicates whether the Width and Height properties of the Int32Rect are greater than 0. |
Height |
Gets or sets the height of the rectangle. |
Is |
Gets a value indicating whether the rectangle is empty. |
Width |
Gets or sets the width of the rectangle. |
X |
Gets or sets the x-coordinate of the top-left corner of the rectangle. |
Y |
Gets or sets the y-coordinate of the top-left corner of the rectangle. |
Equals(Int32Rect, Int32Rect) |
Determines whether the specified rectangles are equal. |
Equals(Int32Rect) |
Determines whether the specified rectangle is equal to this rectangle. |
Equals(Object) |
Determines whether the specified rectangle is equal to this rectangle. |
Get |
Creates a hash code from this rectangle's X, Y, Width, and Height values. |
Parse(String) |
Creates an Int32Rect structure from the specified String representation. |
To |
Creates a string representation of this Int32Rect. |
To |
Creates a string representation of this Int32Rect based on the supplied IFormatProvider. |
Equality(Int32Rect, Int32Rect) |
Compares two rectangles for exact equality. |
Inequality(Int32Rect, Int32Rect) |
Compares two rectangles for inequality. |
IFormattable. |
Formats the value of the current instance using the specified format. |
Produk | Versi |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: