Class SolidPaint
- Namespace
- Northwoods.Go
- Assembly
- Northwoods.GoDiagram.WinForms.dll
A SolidPaint holds information describing how to draw a solid color.
public sealed class SolidPaint : Paint, ICloneable
- Inheritance
-
SolidPaint
- Implements
- Inherited Members
Remarks
SolidPaints are created automatically by the Brush constructors.
Properties
Color
This read-only property returns the color of a solid paint.
public string Color { get; }
Property Value
Methods
CloneProtected(Paint)
Copies properties from this Paint to the given Paint.
public override void CloneProtected(Paint copy)
Parameters
copy
Paint
Darken(double, ColorSpace)
Darkens the solid color, called by Darken(double, ColorSpace).
public override Paint Darken(double fraction, ColorSpace mode)
Parameters
fraction
doublemode
ColorSpace
Returns
- Paint
a SolidPaint with a darkened color
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Lighten(double, ColorSpace)
Lightens the solid color, called by Lighten(double, ColorSpace).
public override Paint Lighten(double fraction, ColorSpace mode)
Parameters
fraction
doublemode
ColorSpace
Returns
- Paint
a SolidPaint with a lightened color
ToString()
Returns a string that represents the current Paint.
public override string ToString()
Returns
- string
A string that represents the current Paint.