Table of Contents

Class SvgDeferredPaintServer

Namespace
Svg
Assembly
Svg.dll

A wrapper for a paint server which isn't defined currently in the parse process, but should be defined by the time the image needs to render.

[TypeConverter(typeof(SvgDeferredPaintServerFactory))]
public class SvgDeferredPaintServer : SvgPaintServer, ISvgTransformable, ICloneable, ISvgNode
Inheritance
SvgDeferredPaintServer
Implements
Inherited Members
Extension Methods

Constructors

SvgDeferredPaintServer()

public SvgDeferredPaintServer()

SvgDeferredPaintServer(SvgDocument, string)

[Obsolete("Will be removed.")]
public SvgDeferredPaintServer(SvgDocument document, string id)

Parameters

document SvgDocument
id string

SvgDeferredPaintServer(string)

Initializes new instance of SvgDeferredPaintServer class.

public SvgDeferredPaintServer(string id)

Parameters

id string

<FuncIRI>, <IRI> or "currentColor".

SvgDeferredPaintServer(string, SvgPaintServer)

Initializes new instance of SvgDeferredPaintServer class.

public SvgDeferredPaintServer(string id, SvgPaintServer fallbackServer)

Parameters

id string

<FuncIRI>, <IRI> or "currentColor".

fallbackServer SvgPaintServer

"none", "currentColor" or SvgColourServer server.

Properties

DeferredId

public string DeferredId { get; set; }

Property Value

string

Document

[Obsolete("Will be removed.")]
public SvgDocument Document { get; set; }

Property Value

SvgDocument

FallbackServer

public SvgPaintServer FallbackServer { get; }

Property Value

SvgPaintServer

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

DeepCopy<T>()

public override SvgElement DeepCopy<T>() where T : SvgElement, new()

Returns

SvgElement

Type Parameters

T

EnsureServer(SvgElement)

public void EnsureServer(SvgElement styleOwner)

Parameters

styleOwner SvgElement

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetBrush(SvgVisualElement, ISvgRenderer, float, bool)

Gets a Brush representing the current paint server.

public override Brush GetBrush(SvgVisualElement styleOwner, ISvgRenderer renderer, float opacity, bool forStroke = false)

Parameters

styleOwner SvgVisualElement

The owner SvgVisualElement.

renderer ISvgRenderer

The renderer object.

opacity float

The opacity of the brush.

forStroke bool

Not used.

Returns

Brush

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGet<T>(SvgPaintServer, SvgElement)

public static T TryGet<T>(SvgPaintServer server, SvgElement parent) where T : SvgPaintServer

Parameters

server SvgPaintServer
parent SvgElement

Returns

T

Type Parameters

T