Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / PushClip Method / PushClip(RectangleF) Method
The clipping rectangle.

In This Topic
    PushClip(RectangleF) Method
    In This Topic
    Specifies a rectangle to which all subsequent drawing operations are clipped.

    The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:

    using (g.PushClip(...)) ... in which case the clipping region will be removed when the returned object is disposed.
    Syntax
    'Declaration
     
    Public Overloads Function PushClip( _
       ByVal clipRect As System.Drawing.RectangleF _
    ) As GcGraphics.Clip
    public GcGraphics.Clip PushClip( 
       System.Drawing.RectangleF clipRect
    )

    Parameters

    clipRect
    The clipping rectangle.

    Return Value

    The GcGraphics.Clip object that removes the clipping when disposed.
    See Also