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
Height
Gets or sets the height of the pattern.
public SvgUnit Height { get; set; }
Property Value
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
Overflow
public SvgOverflow Overflow { get; set; }
Property Value
PatternContentUnits
Gets or sets the width of the pattern.
public SvgCoordinateUnits PatternContentUnits { get; set; }
Property Value
PatternTransform
public SvgTransformCollection PatternTransform { get; set; }
Property Value
PatternUnits
Gets or sets the width of the pattern.
public SvgCoordinateUnits PatternUnits { get; set; }
Property Value
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
Width
Gets or sets the width of the pattern.
public SvgUnit Width { get; set; }
Property Value
X
Gets or sets the X-axis location of the pattern.
public SvgUnit X { get; set; }
Property Value
Y
Gets or sets the Y-axis location of the pattern.
public SvgUnit Y { get; set; }
Property Value
Methods
DeepCopy()
public override SvgElement DeepCopy()
Returns
DeepCopy<T>()
public override SvgElement DeepCopy<T>() where T : SvgElement, new()
Returns
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
SvgVisualElementThe owner SvgVisualElement.
renderer
ISvgRendererThe renderer object.
opacity
floatThe opacity of the brush.
forStroke
boolNot used.