BrushExtensionsToImmutable(IBrush) Method
Converts a brush to an immutable brush.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IImmutableBrush ToImmutable(
this IBrush brush
)
<ExtensionAttribute>
Public Shared Function ToImmutable (
brush As IBrush
) As IImmutableBrush
[<ExtensionAttribute>]
static member ToImmutable :
brush : IBrush -> IImmutableBrush
- brush IBrush
- The brush.
IImmutableBrush
The result of calling
ToImmutable if the brush is mutable,
otherwise
brush.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IBrush. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).