SceneUse Class

An element that draws another element again, as an SVG use: the SVG writes the element once and refers to it, the other renderers draw it again.

public sealed class SceneUse : SceneElement

Exceptions

ArgumentNullException
content is null.

Remarks

The SVG writes the element where it is in the scene, or in its definitions when it is not in the scene, with an identifier (its SceneElement.Id, or a generated one). A use that is in the content it draws, directly or through other uses, draws nothing (SceneUse.IsCircular), as in SVG.

Inheritance
SceneElement SceneUse

Constructors

NameDescription
SceneUse(SceneElement)An element that draws another element again, as an SVG use: the SVG writes the element once and refers to it, the other renderers draw it again.

SceneUse(SceneElement)

SceneUse.cs

An element that draws another element again, as an SVG use: the SVG writes the element once and refers to it, the other renderers draw it again.

public SceneUse(SceneElement content)

Parameters

content SceneElement
The element to draw: an element of the scene, or an element that is only drawn by uses. It is drawn as a child of the parent of the use, with its own transform and effects, then the transform and the effects of the use.

Exceptions

ArgumentNullException
content is null.

Remarks

The SVG writes the element where it is in the scene, or in its definitions when it is not in the scene, with an identifier (its SceneElement.Id, or a generated one). A use that is in the content it draws, directly or through other uses, draws nothing (SceneUse.IsCircular), as in SVG.

Properties

NameDescription
ContentGets the element the use draws.

Gets the element the use draws.

public SceneElement Content { get; }

Property value

SceneElement

Methods

NameDescription
IsCircular()Indicates whether the use is in the content it draws, directly or through other uses: it then draws nothing, as in SVG.

IsCircular()

SceneUse.cs

Indicates whether the use is in the content it draws, directly or through other uses: it then draws nothing, as in SVG.

public bool IsCircular()

Returns

bool true when the use is in its content.

Remarks

The content of the masks, the patterns and the markers of the elements counts.