## Pen::set_Brush method


Sets this pen's [Brush](../../brush/) object.

```cpp
void System::Drawing::Pen::set_Brush(const SharedPtr<Brush> &brush)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | The value to set |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Class [Pen](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
