Aspose::Page::XPS::XpsDocument::CreatePathFigure method

XpsDocument::CreatePathFigure(System::Drawing::PointF, bool) method

Creates a new path figure.

System::SharedPtr<XpsModel::XpsPathFigure> Aspose::Page::XPS::XpsDocument::CreatePathFigure(System::Drawing::PointF startPoint, bool isClosed=false)
ParameterTypeDescription
startPointSystem::Drawing::PointFThe starting point for the first segment of the path figure.
isClosedboolSpecifies 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.

ReturnValue

New path figure.

See Also

XpsDocument::CreatePathFigure(System::Drawing::PointF, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>>, bool) method

Creates a new path figure.

System::SharedPtr<XpsModel::XpsPathFigure> Aspose::Page::XPS::XpsDocument::CreatePathFigure(System::Drawing::PointF startPoint, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>> segments, bool isClosed=false)
ParameterTypeDescription
startPointSystem::Drawing::PointFThe starting point for the first segment of the path figure.
segmentsSystem::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>>List of path segments.
isClosedboolSpecifies 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.

ReturnValue

New path figure.

See Also