Method ClipViewport
ClipViewport()
Changes the Clip to the intersection of the current Clip and the Viewport of this View.
public Region? ClipViewport()
Returns
- Region
The current Clip, which can be then re-applied SetClip(Region?)
Remarks
By default, sets the Clip to the intersection of the current clip region and the Viewport. This ensures that drawing is constrained to the viewport, but allows content to be drawn beyond the viewport.
If ViewportSettings has ClipContentOnly set, clipping will be applied to just the visible content area.
This method returns the current clip region, not a clone. If there is a need to modify the clip region, it is recommended to clone it first.