ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi Namespace / Graphics Class / ClipBound Property
Example

In This Topic
    ClipBound Property
    In This Topic
    Gets the System.Drawing.Rectangle structure that bounds the clipping region of this Graphics object.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property ClipBound As Rectangle
    public Rectangle ClipBound {get;}

    Property Value

    This property indicates a System.Drawing.Rectangle structure that represents a bounding rectangle for the clipping region of this Graphics object.
    Example
    How to judge a Grphics's clip is empty?
    bool isClipEmpty = (graphics.ClipBound == Rectangle.Empty);
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also