Class SVGOptimizationOptions

Class SVGOptimizationOptions

Namespace: Aspose.Html.Toolkit.Optimizers
Assembly: Aspose.HTML.dll (25.2.0)

SVGOptimizationOptions is a class for storing options for optimizing SVG documents.

[ComVisible(true)]
public class SVGOptimizationOptions

Inheritance

objectSVGOptimizationOptions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

SVGOptimizationOptions()

Initializes a new instance of the Aspose.Html.Toolkit.Optimizers.SVGOptimizationOptions class.

public SVGOptimizationOptions()

Properties

CleanListOfValues

Gets or sets the option for rounding to 3 decimal places of list numeric values in attributes. It is ’true’ by default.

public bool CleanListOfValues { get; set; }

Property Value

bool

CollapseGroups

Gets or sets the option to collapse excess groups. It is ’true’ by default.

public bool CollapseGroups { get; set; }

Property Value

bool

PathOptimizationOptions

Gets or sets the option Aspose.Html.Toolkit.Optimizers.SVGPathOptimizationOptions. If this option is null, then path element optimization will not be performed.

public SVGPathOptimizationOptions PathOptimizationOptions { get; set; }

Property Value

SVGPathOptimizationOptions

RemoveDescriptions

Gets or sets the option to remove only editors content or empty elements. It is ’true’ by default.

public bool RemoveDescriptions { get; set; }

Property Value

bool

RemoveEmptyAttributes

Gets or sets the option to remove attributes with empty values. It is ’true’ by default.

public bool RemoveEmptyAttributes { get; set; }

Property Value

bool

RemoveEmptyContainers

Gets or sets the option to remove empty containers. It is ’true’ by default.

public bool RemoveEmptyContainers { get; set; }

Property Value

bool

RemoveEmptyText

Gets or sets the option to remove empty Text elements. It is ’true’ by default.

public bool RemoveEmptyText { get; set; }

Property Value

bool

RemoveHiddenElements

Gets or sets the option to remove elements that are not visible during rendering. It is ’true’ by default.

public bool RemoveHiddenElements { get; set; }

Property Value

bool

RemoveIndentsAndLineBreaks

Gets or sets the option to remove line indents and breaks. It is ’true’ by default.

public bool RemoveIndentsAndLineBreaks { get; set; }

Property Value

bool

RemoveMetadata

Gets or sets the option to remove metadata. It is ’true’ by default.

public bool RemoveMetadata { get; set; }

Property Value

bool

RemoveUnusedDefs

Gets of sets the option to remove the content of defs that are not displayed directly without identifiers. It is ’true’ by default.

public bool RemoveUnusedDefs { get; set; }

Property Value

bool

RemoveUnusedNamespaces

Gets or sets the option to remove the declaration of unused namespaces from the SVG element that are not used in elements or attributes. It is ’true’ by default.

public bool RemoveUnusedNamespaces { get; set; }

Property Value

bool

RemoveUselessStrokeAndFill

Gets of sets the option to remove unused stroke and fill attributes. It is ’true’ by default.

public bool RemoveUselessStrokeAndFill { get; set; }

Property Value

bool