StreamGeometryContext.BeginFigure(Point, Boolean, Boolean) Method

Definition

Specifies the starting point for a new figure.

C#
public abstract void BeginFigure(System.Windows.Point startPoint, bool isFilled, bool isClosed);

Parameters

startPoint
Point

The Point where the figure begins.

isFilled
Boolean

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

isClosed
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.

Remarks

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.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10