Table of Contents

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

SvgPaintServer

None

An unspecified SvgPaintServer.

public static readonly SvgPaintServer None

Field Value

SvgPaintServer

NotSet

An unspecified SvgPaintServer.

public static readonly SvgPaintServer NotSet

Field Value

SvgPaintServer

Properties

GetCallback

public Func<SvgPaintServer> GetCallback { get; set; }

Property Value

Func<SvgPaintServer>

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

styleOwner SvgVisualElement

The owner SvgVisualElement.

renderer ISvgRenderer

The renderer object.

opacity float

The opacity of the brush.

forStroke bool

Not used.

Returns

Brush

Render(ISvgRenderer)

Renders the SvgElement and contents to the specified ISvgRenderer object.

protected override void Render(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer object to render to.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.