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 : SceneElementExceptions
ArgumentNullExceptioncontentisnull.
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
SceneElementSceneUse
Constructors
| Name | Description |
|---|---|
| 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.csAn 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
contentSceneElement- 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
ArgumentNullExceptioncontentisnull.
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
| Name | Description |
|---|---|
| Content | Gets the element the use draws. |
Content
SceneUse.csMethods
| Name | Description |
|---|---|
| IsCircular() | Indicates whether the use is in the content it draws, directly or through other uses: it then draws nothing, as in SVG. |