[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.Graphics.SetClip

SetClip Method

SetClip(Region)

Sets the clipping region of this Graphics object to the result of the Replace combining the current clip region and the specified Region object.

Declaration
public void SetClip(Region region)
Public Sub SetClip(region As Region)
Parameters
Type Name Description
Region region

Region object to combine.

Remarks

Only a copy of the setting region is used. The region itself can be seted for any number of other device contexts or it can be deleted.

SetClip(Rectangle)

Sets the clipping region of this Graphics object to the rectangle specified by a Rectangle structure.

Declaration
public void SetClip(Rectangle rectangle)
Public Sub SetClip(rectangle As Rectangle)
Parameters
Type Name Description
Rectangle rectangle

Rectangle structure that represents the new clip region.

Remarks

Only a copy of the setting region is used. The region itself can be seted for any number of other device contexts or it can be deleted.

SetClip(Rectangle, CombineMode)

Sets the clipping region of this Graphics object to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.

Declaration
public void SetClip(Rectangle rectangle, CombineMode combineMode)
Public Sub SetClip(rectangle As Rectangle, combineMode As CombineMode)
Parameters
Type Name Description
Rectangle rectangle

Rectangle structure to combine.

CombineMode combineMode

Member of the CombineMode enumeration that specifies the combining operation to use.

Remarks

Only a copy of the setting region is used. The region itself can be seted for any number of other device contexts or it can be deleted.

SetClip(Region, CombineMode)

Sets the clipping region of this Graphics object to the result of the specified operation combining the current clip region and the specified Region object.

Declaration
public void SetClip(Region region, CombineMode combineMode)
Public Sub SetClip(region As Region, combineMode As CombineMode)
Parameters
Type Name Description
Region region

Region object to combine.

CombineMode combineMode

Member of the CombineMode enumeration that specifies the combining operation to use.

Remarks

Only a copy of the setting region is used. The region itself can be seted for any number of other device contexts or it can be deleted.