[]
Represents an SVG paint.
public class SvgPaint : IEquatable<SvgPaint>
public SvgPaint(HslColor hslColor)
hslColor
HslColorpublic SvgPaint(SvgColor color)
color
SvgColorInitializes a new instance of the SvgPaint class from SvgReference and SvgColor.
public SvgPaint(SvgReference href, SvgColor color)
href
SvgReferencecolor
SvgColorInitializes a new instance of the SvgPaint class from SvgReference.
public SvgPaint(SvgReference href)
href
SvgReferenceInitializes a new instance of the SvgPaint class from System.Drawing.Color.
public SvgPaint(Color color)
color
System.Drawing.ColorRepresents a solid black color.
public static readonly SvgPaint Black
Represents the 'context-fill' value.
public static readonly SvgPaint ContextFill
Represents the 'context-stroke' value.
public static readonly SvgPaint ContextStroke
Represents the 'none' value.
public static readonly SvgPaint None
Gets a solid color.
public SvgColor Color { get; }
Gets a reference to a paint server element.
public SvgReference Href { get; }
Gets the type of this SVG paint.
public SvgPaintType PaintType { get; }
Determines whether the specified SvgPaint is equal to this instance.
public bool Equals(SvgPaint other)
other
SvgPaintDetermines whether the specified object is equal to this instance.
public override bool Equals(object value)
value
objectReturns a hash code for the current SvgPaint.
public override int GetHashCode()
Returns a string that represents the current SvgPaint.
public override string ToString()