## PageAPI::CreateGradientStop(System::Drawing::Color, float) method


Creates a new gradient stop.

```cpp
System::SharedPtr<XpsModel::XpsGradientStop> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGradientStop(System::Drawing::Color color, float offset)
```


| Parameter | Type | Description |
| --- | --- | --- |
| color | System::Drawing::Color | The gradient stop color. |
| offset | float | The gradient offset. |

### ReturnValue

New gradient stop.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsGradientStop](../../../aspose.page.xps.xpsmodel/xpsgradientstop/)
* Class [Color](../../../system.drawing/color/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateGradientStop(System::SharedPtr\<XpsModel::XpsColor\>, float) method


Creates a new gradient stop.

```cpp
System::SharedPtr<XpsModel::XpsGradientStop> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateGradientStop(System::SharedPtr<XpsModel::XpsColor> color, float offset)
```


| Parameter | Type | Description |
| --- | --- | --- |
| color | System::SharedPtr\<XpsModel::XpsColor\> | The gradient stop color. |
| offset | float | The gradient offset. |

### ReturnValue

New gradient stop.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsGradientStop](../../../aspose.page.xps.xpsmodel/xpsgradientstop/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
