SceneGroup Class

A group of elements, with a clip rectangle or path, and the transform, the opacity and the effects of an element, that apply to all of them.

public sealed class SceneGroup : SceneElement
Inheritance
SceneElement SceneGroup

Constructors

NameDescription
SceneGroup()

SceneGroup()

SceneGroup.cs
public SceneGroup()

No documentation is available.

Properties

NameDescription
ChildrenGets the elements of the group, drawn in order.
ClipGets or sets the rectangle outside of which nothing is drawn, in the coordinates of the parent of the group, or null for none.
ClipPathGets or sets the path outside of which nothing is drawn, in the coordinates of the parent of the group, or null for none. With SceneGroup.Clip, only what is inside both is drawn.
ClipRuleGets or sets the rule that decides which points are inside SceneGroup.ClipPath.
ViewBoxGets or sets the view box of the children, as a nested SVG svg element, or null for none: a rectangle of the coordinates of the children is mapped to a viewport of the coordinates of the group, which cuts what is outside of it.

Gets the elements of the group, drawn in order.

public IList<SceneElement> Children { get; }

Property value

IList<SceneElement>

Gets or sets the rectangle outside of which nothing is drawn, in the coordinates of the parent of the group, or null for none.

public SceneBounds? Clip { get; set; }

Property value

SceneBounds?

Gets or sets the path outside of which nothing is drawn, in the coordinates of the parent of the group, or null for none. With SceneGroup.Clip, only what is inside both is drawn.

public PathData? ClipPath { get; set; }

Property value

PathData?

Gets or sets the rule that decides which points are inside SceneGroup.ClipPath.

public SceneFillRule ClipRule { get; set; }

Property value

SceneFillRule

Gets or sets the view box of the children, as a nested SVG svg element, or null for none: a rectangle of the coordinates of the children is mapped to a viewport of the coordinates of the group, which cuts what is outside of it.

public SceneViewBox? ViewBox { get; set; }

Property value

SceneViewBox?

Remarks

It applies inside the SceneElement.Transform of the group; SceneGroup.Clip and SceneGroup.ClipPath stay in the coordinates of the parent. A view box whose box or viewport has no area draws nothing.

Methods

NameDescription
Add<T>(T)Adds an element to the group.

Add<T>(T)

SceneGroup.cs

Adds an element to the group.

public T Add<T>(T element) where T : SceneElement

Type parameters

T

Parameters

element T
The element.

Returns

T The element.