SvgLoadOptions

SvgLoadOptions class

Options for loading Svg documents.

public class SvgLoadOptions : LoadOptions, IResourceLoadingOptions

Constructors

Name Description
SvgLoadOptions() Initializes new instance of SvgLoadOptions class.

Properties

Name Description
CropToContentBounds { get; set; } Gets or sets a value indicating whether to crop the SVG bounding box to the content bounds before conversion. The default is false.
ExecuteScripts { get; set; } Gets or sets whether the document’s scripts run while it loads and converts. Default: false.
ExternalResourceHandler { get; set; } Gets or sets the handler called for each resource the document asks an engine to load. Default: null.
Format { get; set; } Input document file type. Is null until a format has been set, so test it for null rather than against Unknown, which it never equals.
virtual Format { get; } Input document file type.
MinimumHeight { get; set; } Set minimum height for converting SVG document. It’s used when converting to raster formats. Default is 600.
MinimumWidth { get; set; } Set minimum width for converting SVG document. It’s used when converting to raster formats. Default is 800.
SkipExternalResources { get; set; } Gets or sets whether external resources are denied. Default: true.
WhitelistedResources { get; set; } Gets or sets the absolute URI prefixes of the external resources that load while SkipExternalResources is true.

Methods

Name Description
override Equals(object) Determines whether two object instances are equal.
virtual Equals(ValueObject) Determines whether two object instances are equal.
override GetHashCode() Serves as the default hash function.

See Also