In This Article

BrushExtensions Class

Provides extension methods for the Avalonia.Media.IBrush type.

public static class BrushExtensions
Inheritance:
object object

Methods

Clone(IBrush?, bool)

Clones the specified Avalonia.Media.IBrush.

public static IBrush? Clone(this IBrush? brush, bool forceMutable = false)
Parameter Type Description
brush IBrush

The Avalonia.Media.IBrush to clone.

forceMutable bool

When false, the default, an Avalonia.Media.IImmutableBrush passed in will be directly returned.

Returns

IBrush:

The cloned Avalonia.Media.IBrush.

Inherited Members