## PageAPI::CreateLinearGradientBrush(System::Drawing::PointF, System::Drawing::PointF) method


Creates a new linear gradient brush.

```cpp
System::SharedPtr<XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateLinearGradientBrush(System::Drawing::PointF startPoint, System::Drawing::PointF endPoint)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startPoint | System::Drawing::PointF | The starting point of the linear gradient. |
| endPoint | System::Drawing::PointF | The end point of the linear gradient. |

### ReturnValue

New linear gradient brush.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsLinearGradientBrush](../../../aspose.page.xps.xpsmodel/xpslineargradientbrush/)
* Class [PointF](../../../system.drawing/pointf/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateLinearGradientBrush(System::SharedPtr\<System::Collections::Generic::List\<System::SharedPtr\<XpsModel::XpsGradientStop\>\>\>, System::Drawing::PointF, System::Drawing::PointF) method


Creates a new linear gradient brush.

```cpp
System::SharedPtr<XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::CreateLinearGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>> gradientStops, System::Drawing::PointF startPoint, System::Drawing::PointF endPoint)
```


| Parameter | Type | Description |
| --- | --- | --- |
| gradientStops | System::SharedPtr\<System::Collections::Generic::List\<System::SharedPtr\<XpsModel::XpsGradientStop\>\>\> | The list of gradient stops. |
| startPoint | System::Drawing::PointF | The starting point of the linear gradient. |
| endPoint | System::Drawing::PointF | The end point of the linear gradient. |

### ReturnValue

New linear gradient brush.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsLinearGradientBrush](../../../aspose.page.xps.xpsmodel/xpslineargradientbrush/)
* Class [List](../../../system.collections.generic/list/)
* Class [XpsGradientStop](../../../aspose.page.xps.xpsmodel/xpsgradientstop/)
* Class [PointF](../../../system.drawing/pointf/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
