[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgPaint

Class SvgPaint

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

Represents an SVG paint.

public class SvgPaint : IEquatable<SvgPaint>
Inheritance
object
SvgPaint
Implements
System.IEquatable<T><SvgPaint>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Constructors

SvgPaint(HslColor)

Initializes a new instance of the SvgPaint class from HslColor.

public SvgPaint(HslColor hslColor)

Parameters

hslColor HslColor

SvgPaint(SvgColor)

Initializes a new instance of the SvgPaint class from SvgColor.

public SvgPaint(SvgColor color)

Parameters

color SvgColor

SvgPaint(SvgReference, SvgColor)

Initializes a new instance of the SvgPaint class from SvgReference and SvgColor.

public SvgPaint(SvgReference href, SvgColor color)

Parameters

href SvgReference
color SvgColor

SvgPaint(SvgReference)

Initializes a new instance of the SvgPaint class from SvgReference.

public SvgPaint(SvgReference href)

Parameters

href SvgReference

SvgPaint(Color)

Initializes a new instance of the SvgPaint class from System.Drawing.Color.

public SvgPaint(Color color)

Parameters

color System.Drawing.Color

Fields

Black

Represents a solid black color.

public static readonly SvgPaint Black

Field Value

SvgPaint

ContextFill

Represents the 'context-fill' value.

public static readonly SvgPaint ContextFill

Field Value

SvgPaint

ContextStroke

Represents the 'context-stroke' value.

public static readonly SvgPaint ContextStroke

Field Value

SvgPaint

None

Represents the 'none' value.

public static readonly SvgPaint None

Field Value

SvgPaint

Properties

Color

Gets a solid color.

public SvgColor Color { get; }

Property Value

SvgColor

Href

Gets a reference to a paint server element.

public SvgReference Href { get; }

Property Value

SvgReference

PaintType

Gets the type of this SVG paint.

public SvgPaintType PaintType { get; }

Property Value

SvgPaintType

Methods

Equals(SvgPaint)

Determines whether the specified SvgPaint is equal to this instance.

public bool Equals(SvgPaint other)

Parameters

other SvgPaint

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object value)

Parameters

value object

Returns

bool

GetHashCode()

Returns a hash code for the current SvgPaint.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current SvgPaint.

public override string ToString()

Returns

string