Class SvgElementCollectionExtensions
Provides extension methods for collections of SvgElement.
Inherited Members
Namespace: OpenSvg.SvgNodes
Assembly: OpenSvg.dll
Syntax
public static class SvgElementCollectionExtensions
Methods
| Edit this page View SourceGroup(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. |
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. |