StreamGeometryContext.BeginFigure Method (Point, Boolean, Boolean)


Specifies the starting point for a new figure.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public abstract void BeginFigure(
	Point startPoint,
	bool isFilled,
	bool isClosed


Type: System.Windows.Point

The Point where the figure begins.

Type: System.Boolean

true to use the area contained by this figure for hit-testing, rendering, and clipping; otherwise, false.

Type: System.Boolean

true to close the figure; otherwise, false. For example, if two connecting lines are drawn, and isClosed is set to false, the drawing will just be of two lines but if isClosed is set to true, the two lines will be closed to create a triangle.

By calling this method multiple times, you can create multiple figures (self-contained geometric shapes) within this StreamGeometryContext.

A StreamGeometry cannot be serialized if it contains a Transform or any non-stroked or unfilled segments.

.NET Framework
Available since 3.0
Return to top