SvgRenderOptions Class

The options of SvgSceneRenderer.

public sealed class SvgRenderOptions

Constructors

NameDescription
SvgRenderOptions()

SvgRenderOptions()

SvgRenderOptions.cs
public SvgRenderOptions()

No documentation is available.

Properties

NameDescription
EmbedFontsGets or sets a value that indicates whether the fonts of the scene (Scene.Fonts) are embedded in the SVG, as @font-face rules, so every viewer draws the texts with the fonts that measured them. Only the faces that draw a character of a text are embedded, whole; the faces of font collections (.ttc, .otc) are not embedded. The default is false.
IdPrefixGets or sets the prefix of the identifiers of the gradients and clip paths. Give each drawing of an HTML page its own prefix, so the identifiers do not collide. The default is scene.
IncludeNamespaceGets or sets a value that indicates whether the xmlns attribute is written. Turn it off for SVG inlined in HTML. The default is true.
PrecisionGets or sets the number of decimals of the coordinates, from 0 to 15. The default is 2.

Gets or sets a value that indicates whether the fonts of the scene (Scene.Fonts) are embedded in the SVG, as @font-face rules, so every viewer draws the texts with the fonts that measured them. Only the faces that draw a character of a text are embedded, whole; the faces of font collections (.ttc, .otc) are not embedded. The default is false.

public bool EmbedFonts { get; set; }

Property value

bool

Gets or sets the prefix of the identifiers of the gradients and clip paths. Give each drawing of an HTML page its own prefix, so the identifiers do not collide. The default is scene.

public string IdPrefix { get; set; }

Property value

string

IncludeNamespace

SvgRenderOptions.cs

Gets or sets a value that indicates whether the xmlns attribute is written. Turn it off for SVG inlined in HTML. The default is true.

public bool IncludeNamespace { get; set; }

Property value

bool

Gets or sets the number of decimals of the coordinates, from 0 to 15. The default is 2.

public int Precision { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 15.