类 Region

Region class

描述由矩形和路径组成的图形形状的内部。此类不可被继承。

public sealed class Region

构造函数

名称描述
Region()初始化一个新的 Region
Region(GraphicsPath)使用指定的 GraphicsPath 初始化一个新的 Region
Region(Rectangle)从指定的 Rectangle 结构初始化一个新的 Region
Region(RectangleF)从指定的 RectangleF 结构初始化一个新的 Region

方法

名称描述
Complement(GraphicsPath)更新此 Region,使其包含指定的 GraphicsPath 中未与此 Region 相交的部分。
Complement(Rectangle)更新此 Region,使其包含指定的 Rectangle 结构中未与此 Region 相交的部分。
Complement(RectangleF)更新此 Region,使其包含指定的 RectangleF 结构中未与此 Region 相交的部分。
Complement(Region)更新此 Region,使其包含指定的 Region 中未与此 Region 相交的部分。
DeepClone()创建此 Region 的精确深拷贝。
override Equals(object)检查对象是否相等。
Equals(Region, Graphics)测试指定的 Region 在指定的绘图表面上是否与此 Region 完全相同。
Exclude(GraphicsPath)更新此 Region,仅保留其内部未与指定的 GraphicsPath 相交的部分。
Exclude(Rectangle)更新此 Region,仅保留其内部未与指定的 Rectangle 结构相交的部分。
Exclude(RectangleF)更新此 Region,仅保留其内部未与指定的 RectangleF 结构相交的部分。
Exclude(Region)更新此 Region,仅保留其内部未与指定的 Region 相交的部分。
override GetHashCode()获取当前对象的哈希码。
Intersect(GraphicsPath)更新此 Region,使其与指定的 GraphicsPath 取交集。
Intersect(Rectangle)更新此 Region,使其与指定的 Rectangle 结构取交集。
Intersect(RectangleF)更新此 Region,使其与指定的 RectangleF 结构取交集。
Intersect(Region)更新此 Region,使其与指定的 Region 取交集。
IsEmpty(Graphics)测试此 Region 在指定的绘图表面上是否具有空的内部。
IsInfinite(Graphics)测试此 Region 在指定的绘图表面上是否具有无限的内部。
IsVisible(Point)测试指定的 Point 结构是否包含在此 Region 中。
IsVisible(PointF)测试指定的 PointF 结构是否包含在此 Region 中。
IsVisible(Rectangle)测试指定的 Rectangle 结构的任何部分是否包含在此 Region 中。
IsVisible(RectangleF)测试指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
IsVisible(float, float)测试指定的点是否包含在此 Region 中。
IsVisible(Point, Graphics)测试在使用指定的 Graphics 绘制时,指定的 Point 结构是否包含在此 Region 中。
IsVisible(PointF, Graphics)测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否包含在此 Region 中。
IsVisible(Rectangle, Graphics)测试在使用指定的 Graphics 绘制时,指定的 Rectangle 结构的任何部分是否包含在此 Region 中。
IsVisible(RectangleF, Graphics)测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否包含在此 Region 中。
IsVisible(float, float, Graphics)测试在使用指定的 Graphics 绘制时,指定的点是否包含在此 Region 中。
IsVisible(int, int, Graphics)测试在使用指定的 Graphics 对象绘制时,指定的点是否包含在此 Region 对象中。
IsVisible(float, float, float, float)测试指定的矩形的任何部分是否包含在此 Region 中。
IsVisible(int, int, int, int)测试指定的矩形的任何部分是否包含在此 Region 中。
IsVisible(float, float, float, float, Graphics)测试在使用指定的 Graphics 绘制时,指定的矩形的任何部分是否包含在此 Region 中。
IsVisible(int, int, int, int, Graphics)测试在使用指定的 Graphics 绘制时,指定的矩形的任何部分是否包含在此 Region 中。
MakeEmpty()将此 Region 初始化为空内部。
MakeInfinite()将此 Region 对象初始化为无限内部。
Transform(Matrix)使用指定的 Matrix 对此 Region 进行变换。
Translate(float, float)按指定的量偏移此 Region 的坐标。
Translate(int, int)按指定的量偏移此 Region 的坐标。
Union(GraphicsPath)将此 Region 更新为自身与指定的 GraphicsPath 的并集。
Union(Rectangle)将此 Region 更新为自身与指定的 Rectangle 结构的并集。
Union(RectangleF)将此 Region 更新为自身与指定的 RectangleF 结构的并集。
Union(Region)将此 Region 更新为自身与指定的 Region 的并集。
Xor(GraphicsPath)将此 Region 更新为自身与指定的 GraphicsPath 的交集的差集(并集减去交集)。
Xor(Rectangle)将此 Region 更新为自身与指定的 Rectangle 结构的交集的差集(并集减去交集)。
Xor(RectangleF)将此 Region 更新为自身与指定的 RectangleF 结构的交集的差集(并集减去交集)。
Xor(Region)将此 Region 更新为自身与指定的 Region 的交集的差集(并集减去交集)。

另请参见