Clip Method (Rect)
Collapse the table of content
Expand the table of content

StrokeCollection.Clip Method (Rect)

Replaces all strokes that are clipped by the specified rectangle with new strokes that do not extend beyond the specified rectangle.

Namespace: System.Windows.Ink
Assembly: PresentationCore (in presentationcore.dll)

public void Clip (
	Rect bounds
)
public void Clip (
	Rect bounds
)
public function Clip (
	bounds : Rect
)
You cannot use methods in XAML.

Parameters

bounds

A Rect that specifies the area to be clipped.

All strokes that are entirely outside the specified rectangle are removed.

The following example demonstrates how to erase the ink that is outside the bounds of a Rect. This example assumes that there is an InkPresenter called presenter.

Rect rect = new Rect(100, 100, 200, 200);
presenter.Strokes.Clip(rect);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft