Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Class SvgElementCollectionExtensions

Provides extension methods for collections of SvgElement.

Inheritance
object
SvgElementCollectionExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenSvg.SvgNodes
Assembly: OpenSvg.dll
Syntax
public static class SvgElementCollectionExtensions

Methods

| Edit this page View Source

Group(IEnumerable<SvgElement>)

Returns a new SvgGroup element from a collection of SvgElement.

Declaration
public static SvgGroup Group(this IEnumerable<SvgElement> svgElements)
Parameters
Type Name Description
IEnumerable<SvgElement> svgElements

The collection of SvgElement.

Returns
Type Description
SvgGroup

A new SvgGroup element.

| Edit this page View Source

Stack(IEnumerable<SvgVisual>, Orientation)

Creates a new SvgGroup element from a SvgElement collection and stacking the elements in the specified orientation. If the orientation is Horizontal, the elements are stacked horizontally, from left to right. If the orientation is Vertical, the elements are stacked vertically, from top to bottom."/>

Declaration
public static SvgGroup Stack(this IEnumerable<SvgVisual> svgVisuals, Orientation orientation)
Parameters
Type Name Description
IEnumerable<SvgVisual> svgVisuals

The collection of type SvgElement.

Orientation orientation

The orientation of the elements in the collection.

Returns
Type Description
SvgGroup

A new SvgGroup element.