Aspose::Page::XPS::XpsDocument::InsertPage 方法

XpsDocument::InsertPage(int32_t, bool) method

index 位置向文档插入一个具有默认页面尺寸的空页面。

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, bool activate=true)
ParameterType描述
索引int32_t应插入页面的位置。
激活bool指示是否将插入的页面设为活动页的标志。

ReturnValue

已插入的页面。

另见

XpsDocument::InsertPage(int32_t, float, float, bool) method

index 位置向文档插入一个具有指定 widthheight 的空页面。

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, float width, float height, bool activate=true)
ParameterType描述
索引int32_t应插入页面的位置。
width单精度浮点数新页面的宽度。
height单精度浮点数新页面的高度。
激活bool指示是否将插入的页面设为活动页的标志。

ReturnValue

已插入的页面。

另见

XpsDocument::InsertPage(int32_t, System::SharedPtr<XpsModel::XpsPage>, bool) method

index 位置向文档插入一个页面。

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, System::SharedPtr<XpsModel::XpsPage> page, bool activate=true)
ParameterType描述
索引int32_t应添加页面的位置。
pageSystem::SharedPtr<XpsModel::XpsPage>要插入的 Page
激活bool指示是否将插入的页面设为活动页的标志。

ReturnValue

已插入的页面。

另见