SolidBrush
Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths. This class cannot be inherited.
using System.Runtime.CompilerServices;
namespace System.Drawing
{
public sealed class SolidBrush : Brush
{
public Color Color {
get {
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
set {
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
}
public SolidBrush(Color color)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
[System.Runtime.CompilerServices.NullableContext(1)]
public override object Clone()
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
protected override void Dispose(bool disposing)
{
}
}
}