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
SceneElementSceneGroup
Constructors
| Name | Description |
|---|---|
| SceneGroup() |
SceneGroup()
SceneGroup.cspublic SceneGroup()No documentation is available.
Properties
| Name | Description |
|---|---|
| Children | Gets the elements of the group, drawn in order. |
| Clip | Gets or sets the rectangle outside of which nothing is drawn, in the coordinates of the parent of the group, or null for none. |
| ClipPath | 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. |
| ClipRule | Gets or sets the rule that decides which points are inside SceneGroup.ClipPath. |
| ViewBox | 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. |
Children
SceneGroup.csGets the elements of the group, drawn in order.
public IList<SceneElement> Children { get; }Property value
Clip
SceneGroup.csGets 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
ClipPath
SceneGroup.csGets 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
ClipRule
SceneGroup.csGets or sets the rule that decides which points are inside SceneGroup.ClipPath.
public SceneFillRule ClipRule { get; set; }Property value
ViewBox
SceneGroup.csGets 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
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
| Name | Description |
|---|---|
| Add<T>(T) | Adds an element to the group. |
Add<T>(T)
SceneGroup.csAdds an element to the group.
public T Add<T>(T element) where T : SceneElementType parameters
T
Parameters
elementT- The element.
Returns
T The element.