Region.IsVisible

IsVisible(float, float)

Tests whether the specified point is contained within this Region.

public bool IsVisible(float x, float y)
ParameterTypeDescription
xSingleThe x-coordinate of the point to test.
ySingleThe y-coordinate of the point to test.

Return Value

True when the specified point is contained within this Region; otherwise, false.

See Also


IsVisible(PointF)

Tests whether the specified PointF structure is contained within this Region.

public bool IsVisible(PointF point)
ParameterTypeDescription
pointPointFThe PointF structure to test.

Return Value

true when point is contained within this Region; otherwise, false.

See Also


IsVisible(float, float, Graphics)

Tests whether the specified point is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(float x, float y, Graphics g)
ParameterTypeDescription
xSingleThe x-coordinate of the point to test.
ySingleThe y-coordinate of the point to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

True when the specified point is contained within this Region; otherwise, false.

See Also


IsVisible(PointF, Graphics)

Tests whether the specified PointF structure is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(PointF point, Graphics g)
ParameterTypeDescription
pointPointFThe PointF structure to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when point is contained within this Region; otherwise, false.

See Also


IsVisible(float, float, float, float)

Tests whether any portion of the specified rectangle is contained within this Region.

public bool IsVisible(float x, float y, float width, float height)
ParameterTypeDescription
xSingleThe x-coordinate of the upper-left corner of the rectangle to test.
ySingleThe y-coordinate of the upper-left corner of the rectangle to test.
widthSingleThe width of the rectangle to test.
heightSingleThe height of the rectangle to test.

Return Value

true when any portion of the specified rectangle is contained within this Region object; otherwise, false.

See Also


IsVisible(RectangleF)

Tests whether any portion of the specified RectangleF structure is contained within this Region.

public bool IsVisible(RectangleF rect)
ParameterTypeDescription
rectRectangleFThe RectangleF structure to test.

Return Value

true when any portion of rect is contained within this Region; otherwise, false.

See Also


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

Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(float x, float y, float width, float height, Graphics g)
ParameterTypeDescription
xSingleThe x-coordinate of the upper-left corner of the rectangle to test.
ySingleThe y-coordinate of the upper-left corner of the rectangle to test.
widthSingleThe width of the rectangle to test.
heightSingleThe height of the rectangle to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when any portion of the specified rectangle is contained within this Region; otherwise, false.

See Also


IsVisible(RectangleF, Graphics)

Tests whether any portion of the specified RectangleF structure is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(RectangleF rect, Graphics g)
ParameterTypeDescription
rectRectangleFThe RectangleF structure to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when rect is contained within this Region; otherwise, false.

See Also


IsVisible(int, int, Graphics)

Tests whether the specified point is contained within this Region object when drawn using the specified Graphics object.

public bool IsVisible(int x, int y, Graphics g)
ParameterTypeDescription
xInt32The x-coordinate of the point to test.
yInt32The y-coordinate of the point to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when the specified point is contained within this Region; otherwise, false.

See Also


IsVisible(Point)

Tests whether the specified Point structure is contained within this Region.

public bool IsVisible(Point point)
ParameterTypeDescription
pointPointThe Point structure to test.

Return Value

true when point is contained within this Region; otherwise, false.

See Also


IsVisible(Point, Graphics)

Tests whether the specified Point structure is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(Point point, Graphics g)
ParameterTypeDescription
pointPointThe Point structure to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when point is contained within this Region; otherwise, false.

See Also


IsVisible(int, int, int, int)

Tests whether any portion of the specified rectangle is contained within this Region.

public bool IsVisible(int x, int y, int width, int height)
ParameterTypeDescription
xInt32The x-coordinate of the upper-left corner of the rectangle to test.
yInt32The y-coordinate of the upper-left corner of the rectangle to test.
widthInt32The width of the rectangle to test.
heightInt32The height of the rectangle to test.

Return Value

true when any portion of the specified rectangle is contained within this Region; otherwise, false.

See Also


IsVisible(Rectangle)

Tests whether any portion of the specified Rectangle structure is contained within this Region.

public bool IsVisible(Rectangle rect)
ParameterTypeDescription
rectRectangleThe Rectangle structure to test.

Return Value

This method returns true when any portion of rect is contained within this Region; otherwise, false.

See Also


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

Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(int x, int y, int width, int height, Graphics g)
ParameterTypeDescription
xInt32The x-coordinate of the upper-left corner of the rectangle to test.
yInt32The y-coordinate of the upper-left corner of the rectangle to test.
widthInt32The width of the rectangle to test.
heightInt32The height of the rectangle to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when any portion of the specified rectangle is contained within this Region; otherwise, false.

See Also


IsVisible(Rectangle, Graphics)

Tests whether any portion of the specified Rectangle structure is contained within this Region when drawn using the specified Graphics.

public bool IsVisible(Rectangle rect, Graphics g)
ParameterTypeDescription
rectRectangleThe Rectangle structure to test.
gGraphicsA Graphics that represents a graphics context.

Return Value

true when any portion of the rect is contained within this Region; otherwise, false.

See Also