Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

Rect(Int32, Int32, Int32, Int32) 构造函数

Represents a rectangular region with integer coordinates and dimensions 表示具有整数坐标和尺寸的矩形区域

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public Rect(
	int X,
	int Y,
	int Width,
	int Height
)

参数

X  Int32

[缺少 "M:DeploySharp.Data.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)" 的 <param name="X"/> 文档]

Y  Int32

[缺少 "M:DeploySharp.Data.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)" 的 <param name="Y"/> 文档]

Width  Int32

[缺少 "M:DeploySharp.Data.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)" 的 <param name="Width"/> 文档]

Height  Int32

[缺少 "M:DeploySharp.Data.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)" 的 <param name="Height"/> 文档]

备注

Provides functionality for geometric operations including intersection, union, containment checks, and coordinate transformations.

提供几何运算功能,包括交集、并集、包含检查和坐标转换。

示例

Basic usage:
C#
var rect = new Rect(10, 20, 100, 50);
var point = new Point(15, 25);
bool contains = rect.Contains(point);

参见