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
SvgDocumentid
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
Document
[Obsolete("Will be removed.")]
public SvgDocument Document { get; set; }
Property Value
FallbackServer
public SvgPaintServer FallbackServer { get; }
Property Value
Methods
DeepCopy()
public override SvgElement DeepCopy()
Returns
DeepCopy<T>()
public override SvgElement DeepCopy<T>() where T : SvgElement, new()
Returns
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
objectThe object to compare with the current object.
Returns
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
SvgVisualElementThe owner SvgVisualElement.
renderer
ISvgRendererThe renderer object.
opacity
floatThe opacity of the brush.
forStroke
boolNot used.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
public override string ToString()
Returns
TryGet<T>(SvgPaintServer, SvgElement)
public static T TryGet<T>(SvgPaintServer server, SvgElement parent) where T : SvgPaintServer
Parameters
server
SvgPaintServerparent
SvgElement
Returns
- T
Type Parameters
T