Class SvgPaintServer
- Namespace
- Svg
- Assembly
- Svg.dll
Represents the base class for all paint servers that are intended to be used as a fill or stroke.
[TypeConverter(typeof(SvgPaintServerFactory))]
public abstract class SvgPaintServer : SvgElement, ISvgTransformable, ICloneable, ISvgNode
- Inheritance
-
SvgPaintServer
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
Inherit
A SvgPaintServer that should inherit from its parent.
public static readonly SvgPaintServer Inherit
Field Value
None
An unspecified SvgPaintServer.
public static readonly SvgPaintServer None
Field Value
NotSet
An unspecified SvgPaintServer.
public static readonly SvgPaintServer NotSet
Field Value
Properties
GetCallback
public Func<SvgPaintServer> GetCallback { get; set; }
Property Value
Methods
GetBrush(SvgVisualElement, ISvgRenderer, float, bool)
Gets a Brush representing the current paint server.
public abstract Brush GetBrush(SvgVisualElement styleOwner, ISvgRenderer renderer, float opacity, bool forStroke = false)
Parameters
styleOwnerSvgVisualElementThe owner SvgVisualElement.
rendererISvgRendererThe renderer object.
opacityfloatThe opacity of the brush.
forStrokeboolNot used.
Returns
Render(ISvgRenderer)
Renders the SvgElement and contents to the specified ISvgRenderer object.
protected override void Render(ISvgRenderer renderer)
Parameters
rendererISvgRendererThe ISvgRenderer object to render to.
ToString()
public override string ToString()