## XpsDocument::AddPage(bool) method


يضيف صفحة فارغة إلى المستند بحجم صفحة افتراضي.

```cpp
System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(bool activate=true)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| تفعيل | bool | علامة تشير إلى ما إذا كان يجب اختيار الصفحة المضافة كصفحة نشطة. |

### ReturnValue

صفحة مضافة.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPage](../../../aspose.page.xps.xpsmodel/xpspage/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::AddPage(float, float, bool) method


يضيف صفحة فارغة إلى المستند بأبعاد *width* و *height* محددة.

```cpp
System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(float width, float height, bool activate=true)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| العرض | عدد عائم | عرض صفحة جديدة. |
| الارتفاع | عدد عائم | ارتفاع صفحة جديدة. |
| تفعيل | bool | علامة تشير إلى ما إذا كان يجب اختيار الصفحة المضافة كصفحة نشطة. |

### ReturnValue

صفحة مضافة.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPage](../../../aspose.page.xps.xpsmodel/xpspage/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::AddPage(System::SharedPtr\<XpsModel::XpsPage\>, bool) method


يضيف صفحة إلى المستند.

```cpp
System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(System::SharedPtr<XpsModel::XpsPage> page, bool activate=true)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| page | System::SharedPtr\<XpsModel::XpsPage\> | يجب إضافة [Page](../../../aspose.page/). |
| تفعيل | bool | علامة تشير إلى ما إذا كان يجب اختيار الصفحة المضافة كصفحة نشطة. |

### ReturnValue

صفحة مضافة.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPage](../../../aspose.page.xps.xpsmodel/xpspage/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
