public struct Size : IEquatable<Size>
Used for representing dimensions of rectangular areas in integer units. Suitable for pixel-based operations and discrete coordinate systems.
用于表示矩形区域的整数单位尺寸。 适用于基于像素的操作和离散坐标系。
var size = new Size(1920, 1080); // HD resolution
var fromDouble = new Size(1920.7, 1080.3); // Will truncate to (1920, 1080)
Size(Double, Double) | Initializes a new size from floating-point dimensions 从浮点尺寸初始化新大小 |
Size(Int32, Int32) | Represents a size with integer width and height dimensions 表示具有整数宽度和高度尺寸的大小 |
GetType | Gets the Type of the current instance. (继承自 Object。) |
ToString |
Returns a string representation of the size
返回大小的字符串表示形式
(重写 ValueTypeToString) |
(SizeD to Size) | Explicit conversion from SizeD to Size 从SizeD到Size的显式转换 |
(SizeF to Size) | Explicit conversion from SizeF to Size 从SizeF到Size的显式转换 |
Height | Gets or sets the vertical dimension 获取或设置垂直尺寸 |
Width | Gets or sets the horizontal dimension 获取或设置水平尺寸 |