## XpsPathGeometry::AddSegment method


Adds a path segment to the list of child segments of the last pah figure.

```cpp
System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::AddSegment(System::SharedPtr<XpsPathSegment> segment)
```


| Parameter | Type | Description |
| --- | --- | --- |
| segment | System::SharedPtr\<XpsPathSegment\> | The path segment to be added. |

### ReturnValue

Added path segment.

## See Also

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