PageAPI.CreatePathFigure

CreatePathFigure(PointF, bool)

Creates a new path figure.

public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)
ParameterTypeDescription
startPointPointFThe starting point for the first segment of the path figure.
isClosedBooleanSpecifies whether the path is closed. If set to true, the stroke is drawn “closed”, that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn “open”, and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke.

Return Value

New path figure.

See Also


CreatePathFigure(PointF, List<XpsPathSegment>, bool)

Creates a new path figure.

public XpsPathFigure CreatePathFigure(PointF startPoint, List<XpsPathSegment> segments, 
    bool isClosed = false)
ParameterTypeDescription
startPointPointFThe starting point for the first segment of the path figure.
segmentsList`1List of path segments.
isClosedBooleanSpecifies whether the path is closed. If set to true, the stroke is drawn “closed”, that is, the last point in the last segment of the path figure is connected with the point specified in the StartPoint attribute, otherwise the stroke is drawn “open”, and the last point is not connected to the start point. Only applicable if the path figure is used in a Path element that specifies a stroke.

Return Value

New path figure.

See Also