Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathFigure 方法

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

创建一个新的路径图形。

System::SharedPtr<XpsModel::XpsPathFigure> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathFigure(System::Drawing::PointF startPoint, bool isClosed=false)
ParameterType描述
startPointSystem::Drawing::PointF路径图形第一个段的起始点。
isClosedbool指定路径是否闭合。如果设置为 true,则笔画以 "closed" 方式绘制,即路径图形最后一个段的最后一点会连接到 StartPoint 属性指定的点;否则笔画以 "open" 方式绘制,最后一点不会连接到起始点。仅在路径图形用于指定笔画的 Path 元素时适用。

ReturnValue

新的路径图形。

另见

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

创建一个新的路径图形。

System::SharedPtr<XpsModel::XpsPathFigure> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreatePathFigure(System::Drawing::PointF startPoint, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>> segments, bool isClosed=false)
ParameterType描述
startPointSystem::Drawing::PointF路径图形第一个段的起始点。
segmentsSystem::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>>路径段的列表。
isClosedbool指定路径是否闭合。如果设置为 true,则笔画以 "closed" 方式绘制,即路径图形最后一个段的最后一点会连接到 StartPoint 属性指定的点;否则笔画以 "open" 方式绘制,最后一点不会连接到起始点。仅在路径图形用于指定笔画的 Path 元素时适用。

ReturnValue

新的路径图形。

另见