## XpsPathGeometry::InsertSegment method


Inserts a path segment to the list of child segments of the last path figure at *index*  position.

```cpp
System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::InsertSegment(int32_t index, System::SharedPtr<XpsPathSegment> segment)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | Position at which a segment should be inserted. |
| segment | System::SharedPtr\<XpsPathSegment\> | A path segment to be inserted. |

### ReturnValue

Inserted path segment.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XpsPathSegment](../../xpspathsegment/)
* Class [XpsPathGeometry](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
