Class SolidPaint
A SolidPaint holds information describing how to draw a solid color.
Implements
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.WinForms.dll
Syntax
public sealed class SolidPaint : Paint, ICloneable
Remarks
SolidPaints are created automatically by the Brush constructors.
Properties
Color
This read-only property returns the color of a solid paint.
Declaration
public string Color { get; }
Property Value
Type | Description |
---|---|
string |
Methods
CloneProtected(Paint)
Copies properties from this Paint to the given Paint.
Declaration
public override void CloneProtected(Paint copy)
Parameters
Type | Name | Description |
---|---|---|
Paint | copy |
Overrides
Darken(double, ColorSpace)
Darkens the solid color, called by Darken(double, ColorSpace).
Declaration
public override Paint Darken(double fraction, ColorSpace mode)
Parameters
Type | Name | Description |
---|---|---|
double | fraction | |
ColorSpace | mode |
Returns
Type | Description |
---|---|
Paint | a SolidPaint with a darkened color |
Overrides
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
Lighten(double, ColorSpace)
Lightens the solid color, called by Lighten(double, ColorSpace).
Declaration
public override Paint Lighten(double fraction, ColorSpace mode)
Parameters
Type | Name | Description |
---|---|---|
double | fraction | |
ColorSpace | mode |
Returns
Type | Description |
---|---|
Paint | a SolidPaint with a lightened color |
Overrides
ToString()
Returns a string that represents the current Paint.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current Paint. |