Summary
Converts a pen to an immutable pen.
- Namespace
- Avalonia
.Media - Containing Type
- BrushExtensions
Syntax
public static ImmutablePen ToImmutable(this IPen pen)
Parameters
Name | Type | Description |
---|---|---|
pen | IPen | The pen. |
Return Value
Type | Description |
---|---|
ImmutablePen |
The result of calling ToImmutable() if the brush is mutable,
otherwise pen.
|