Table of Contents

Class SvgPatternServer

Namespace
Svg
Assembly
Svg.dll

A pattern is used to fill or stroke an object using a pre-defined graphic object which can be replicated ("tiled") at fixed intervals in x and y to cover the areas to be painted.

[SvgElement("pattern")]
public class SvgPatternServer : SvgPaintServer, ISvgTransformable, ICloneable, ISvgNode, ISvgViewPort
Inheritance
SvgPatternServer
Implements
Inherited Members
Extension Methods

Properties

AspectRatio

Gets or sets the aspect of the viewport.

public SvgAspectRatio AspectRatio { get; set; }

Property Value

SvgAspectRatio

Height

Gets or sets the height of the pattern.

public SvgUnit Height { get; set; }

Property Value

SvgUnit

InheritGradient

Gets or sets another gradient fill from which to inherit the stops from.

[SvgAttribute("href", "http://www.w3.org/1999/xlink")]
public SvgDeferredPaintServer InheritGradient { get; set; }

Property Value

SvgDeferredPaintServer

Overflow

public SvgOverflow Overflow { get; set; }

Property Value

SvgOverflow

PatternContentUnits

Gets or sets the width of the pattern.

public SvgCoordinateUnits PatternContentUnits { get; set; }

Property Value

SvgCoordinateUnits

PatternTransform

public SvgTransformCollection PatternTransform { get; set; }

Property Value

SvgTransformCollection

PatternUnits

Gets or sets the width of the pattern.

public SvgCoordinateUnits PatternUnits { get; set; }

Property Value

SvgCoordinateUnits

ViewBox

Specifies a supplemental transformation which is applied on top of any transformations necessary to create a new pattern coordinate system.

public SvgViewBox ViewBox { get; set; }

Property Value

SvgViewBox

Width

Gets or sets the width of the pattern.

public SvgUnit Width { get; set; }

Property Value

SvgUnit

X

Gets or sets the X-axis location of the pattern.

public SvgUnit X { get; set; }

Property Value

SvgUnit

Y

Gets or sets the Y-axis location of the pattern.

public SvgUnit Y { get; set; }

Property Value

SvgUnit

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

DeepCopy<T>()

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

Returns

SvgElement

Type Parameters

T

GetBrush(SvgVisualElement, ISvgRenderer, float, bool)

Gets a Brush representing the current paint server.

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

Parameters

renderingElement SvgVisualElement

The owner SvgVisualElement.

renderer ISvgRenderer

The renderer object.

opacity float

The opacity of the brush.

forStroke bool

Not used.

Returns

Brush