Table of Contents

Class SvgClipPath

Namespace
Svg
Assembly
Svg.dll

Defines a path that can be used by other ISvgClipable elements.

[SvgElement("clipPath")]
public class SvgClipPath : SvgElement, ISvgTransformable, ICloneable, ISvgNode
Inheritance
SvgClipPath
Implements
Inherited Members
Extension Methods

Properties

ClipPathUnits

Specifies the coordinate system for the clipping path.

public SvgCoordinateUnits ClipPathUnits { get; set; }

Property Value

SvgCoordinateUnits

Methods

AddElement(SvgElement, int)

Called by the underlying SvgElement when an element has been added to the 'Children' collection.

protected override void AddElement(SvgElement child, int index)

Parameters

child SvgElement

The SvgElement that has been added.

index int

An int representing the index where the element was added to the collection.

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

GetClipRegion(SvgVisualElement, ISvgRenderer)

Gets this SvgClipPath's region to be used as a clipping region.

public Region GetClipRegion(SvgVisualElement owner, ISvgRenderer renderer)

Parameters

owner SvgVisualElement
renderer ISvgRenderer

Returns

Region

A new Region containing the Region to be used for clipping.

RemoveElement(SvgElement)

Called by the underlying SvgElement when an element has been removed from the Children collection.

protected override void RemoveElement(SvgElement child)

Parameters

child SvgElement

The SvgElement that has been removed.

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.