Region.IsVisible

IsVisible(float, float)

测试指定的点是否包含在此 Region 中.

public bool IsVisible(float x, float y)
参数类型描述
x单精度要测试的点的 x 坐标。
y单精度要测试的点的 y 坐标。

返回值

如果指定的点包含在此 Region 中则为 true;否则为 false.

另请参见


IsVisible(PointF)

测试指定的 PointF 结构是否包含在此 Region 中.

public bool IsVisible(PointF point)
参数类型描述
pointPointF用于测试的 PointF 结构。

返回值

point 位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(float, float, Graphics)

测试在使用指定的 Graphics 绘制时,指定的点是否位于此 Region 中。

public bool IsVisible(float x, float y, Graphics g)
参数类型描述
x单精度要测试的点的 x 坐标。
y单精度要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

返回值

如果指定的点包含在此 Region 中则为 true;否则为 false.

另请参见


IsVisible(PointF, Graphics)

测试在使用指定的 Graphics 绘制时,指定的 PointF 结构是否位于此 Region 中。

public bool IsVisible(PointF point, Graphics g)
参数类型描述
pointPointF用于测试的 PointF 结构。
gGraphics表示图形上下文的 Graphics

返回值

point 位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(float, float, float, float)

测试指定矩形的任何部分是否位于此 Region 中。

public bool IsVisible(float x, float y, float width, float height)
参数类型描述
x单精度要测试的矩形左上角的 x 坐标。
y单精度要测试的矩形左上角的 y 坐标。
宽度单精度要测试的矩形的宽度。
高度单精度要测试的矩形的高度。

返回值

当指定矩形的任何部分位于此 Region 对象中时为 true;否则为 false。

另请参见


IsVisible(RectangleF)

测试指定的 RectangleF 结构的任何部分是否位于此 Region 中。

public bool IsVisible(RectangleF rect)
参数类型描述
rectRectangleF用于测试的 RectangleF 结构。

返回值

rect 的任何部分位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(float, float, float, float, Graphics)

测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否位于此 Region 中。

public bool IsVisible(float x, float y, float width, float height, Graphics g)
参数类型描述
x单精度要测试的矩形左上角的 x 坐标。
y单精度要测试的矩形左上角的 y 坐标。
宽度单精度要测试的矩形的宽度。
高度单精度要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

返回值

当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(RectangleF, Graphics)

测试在使用指定的 Graphics 绘制时,指定的 RectangleF 结构的任何部分是否位于此 Region 中。

public bool IsVisible(RectangleF rect, Graphics g)
参数类型描述
rectRectangleF用于测试的 RectangleF 结构。
gGraphics表示图形上下文的 Graphics

返回值

rect 位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(int, int, Graphics)

测试在使用指定的 Graphics 对象绘制时,指定的点是否位于此 Region 对象中。

public bool IsVisible(int x, int y, Graphics g)
参数类型描述
xInt32要测试的点的 x 坐标。
yInt32要测试的点的 y 坐标。
gGraphics表示图形上下文的 Graphics

返回值

当指定的点位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(Point)

测试指定的 Point 结构是否位于此 Region 中。

public bool IsVisible(Point point)
参数类型描述
pointPoint用于测试的 Point 结构。

返回值

point 位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(Point, Graphics)

测试在使用指定的 Graphics 绘制时,指定的 Point 结构是否位于此 Region 中。

public bool IsVisible(Point point, Graphics g)
参数类型描述
pointPoint用于测试的 Point 结构。
gGraphics表示图形上下文的 Graphics

返回值

point 位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(int, int, int, int)

测试指定矩形的任何部分是否位于此 Region 中。

public bool IsVisible(int x, int y, int width, int height)
参数类型描述
xInt32要测试的矩形左上角的 x 坐标。
yInt32要测试的矩形左上角的 y 坐标。
宽度Int32要测试的矩形的宽度。
高度Int32要测试的矩形的高度。

返回值

当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(Rectangle)

测试指定的 Rectangle 结构的任何部分是否位于此 Region 中。

public bool IsVisible(Rectangle rect)
参数类型描述
rectRectangle用于测试的 Rectangle 结构。

返回值

rect 的任何部分包含在此 Region 中时,此方法返回 true;否则返回 false。

另请参见


IsVisible(int, int, int, int, Graphics)

测试在使用指定的 Graphics 绘制时,指定矩形的任何部分是否位于此 Region 中。

public bool IsVisible(int x, int y, int width, int height, Graphics g)
参数类型描述
xInt32要测试的矩形左上角的 x 坐标。
yInt32要测试的矩形左上角的 y 坐标。
宽度Int32要测试的矩形的宽度。
高度Int32要测试的矩形的高度。
gGraphics表示图形上下文的 Graphics

返回值

当指定矩形的任何部分位于此 Region 中时为 true;否则为 false。

另请参见


IsVisible(Rectangle, Graphics)

测试在使用指定的 Graphics 绘制时,指定的 Rectangle 结构的任何部分是否包含在此 Region 中。

public bool IsVisible(Rectangle rect, Graphics g)
参数类型描述
rectRectangle用于测试的 Rectangle 结构。
gGraphics表示图形上下文的 Graphics

返回值

rect 的任何部分包含在此 Region 中时为 true;否则为 false。

另请参见