PatternExtensions.AsPaint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsPaint(IPattern) |
Converts a pattern to a paint using black as the foreground color. |
AsPaint(IPattern, Color) |
Converts a pattern to a paint using the specified foreground color. |
AsPaint(IPattern)
- Source:
- PatternExtensions.cs
- Source:
- PatternExtensions.cs
- Source:
- PatternExtensions.cs
Converts a pattern to a paint using black as the foreground color.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Graphics::Paint ^ AsPaint(Microsoft::Maui::Graphics::IPattern ^ target);
public static Microsoft.Maui.Graphics.Paint AsPaint(this Microsoft.Maui.Graphics.IPattern target);
static member AsPaint : Microsoft.Maui.Graphics.IPattern -> Microsoft.Maui.Graphics.Paint
<Extension()>
Public Function AsPaint (target As IPattern) As Paint
Parameters
- target
- IPattern
The pattern to convert.
Returns
A Paint configured with the pattern and black foreground color, or null if the pattern is null.
Applies to
AsPaint(IPattern, Color)
- Source:
- PatternExtensions.cs
- Source:
- PatternExtensions.cs
- Source:
- PatternExtensions.cs
Converts a pattern to a paint using the specified foreground color.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Graphics::Paint ^ AsPaint(Microsoft::Maui::Graphics::IPattern ^ target, Microsoft::Maui::Graphics::Color ^ foregroundColor);
public static Microsoft.Maui.Graphics.Paint AsPaint(this Microsoft.Maui.Graphics.IPattern target, Microsoft.Maui.Graphics.Color foregroundColor);
static member AsPaint : Microsoft.Maui.Graphics.IPattern * Microsoft.Maui.Graphics.Color -> Microsoft.Maui.Graphics.Paint
<Extension()>
Public Function AsPaint (target As IPattern, foregroundColor As Color) As Paint
Parameters
- target
- IPattern
The pattern to convert.
- foregroundColor
- Color
The foreground color to use for the pattern.
Returns
A Paint configured with the pattern and specified foreground color, or null if the pattern is null.