Share via


SolidPaint Class

Definition

Represents a paint that fills shapes with a solid color.

public ref class SolidPaint : Microsoft::Maui::Graphics::Paint
public class SolidPaint : Microsoft.Maui.Graphics.Paint
type SolidPaint = class
    inherit Paint
Public Class SolidPaint
Inherits Paint
Inheritance
SolidPaint

Constructors

Name Description
SolidPaint()

Initializes a new instance of the SolidPaint class with default values.

SolidPaint(Color)

Initializes a new instance of the SolidPaint class with the specified color.

Properties

Name Description
BackgroundColor

Gets or sets the background color of the paint.

(Inherited from Paint)
Color

Gets or sets the color used to fill shapes.

ForegroundColor

Gets or sets the foreground color of the paint.

(Inherited from Paint)
IsTransparent

Gets a value indicating whether this paint has transparent areas.

Methods

Name Description
ToString()

Extension Methods

Name Description
IsNullOrEmpty(Paint)
Lerp(SolidPaint, SolidPaint, Double)
ToColor(Paint)

Applies to