Table of Contents

Class WpfDrawingSettings

Namespace
SharpVectors.Renderers.Wpf
Assembly
SharpVectors.Rendering.Wpf.dll

This provides the settings or options for the drawing/rendering engine of the WPF.

[Serializable]
public sealed class WpfDrawingSettings : WpfSettings<WpfDrawingSettings>, ICloneable, IXmlSerializable
Inheritance
WpfDrawingSettings
Implements
Inherited Members

Constructors

WpfDrawingSettings()

Initializes a new instance of the WpfDrawingSettings class with the default parameters and settings.

WpfDrawingSettings(WpfDrawingSettings)

Initializes a new instance of the WpfDrawingSettings class with the specified initial drawing or rendering settings, a copy constructor.

Fields

PropertyIsResources

A well-known property name, a Boolean value specifying the target output of the rendering is resource dictionary XAML.

If set to true, operations required to enhance the output of ResourceDictionaryXAML are enabled.

The default value is false.
PropertyNoneBrush

A well-known property name, specifies the Brush object to be used for an SVG element, which is defined with display styling none, but no fill styling options.

The default value is null.

PropertyNonePen

A well-known property name, specifies the Pen object to be used for an SVG element, which is defined with display styling none, but no stroke styling options.

The default value is null.

XmlTagName

The name of the XML tag name, under which this object is stored.

XmlVersion

The version of the file format, under which this object is stored.

Properties

CanUseBitmap

Gets or sets a value indicating if image elements will render bitmaps.

CssVariables

Gets or sets user-defined CSS custom properties for the rendering.

CultureInfo

Gets or sets the main culture information used for rendering texts.

DefaultFontFamily

Gets or sets the globally available default font family.

DefaultFontName

Gets or sets the default font family name, which is used when a text node does not specify a font family name.

DpiScale

Gets or sets an object that stores DPI information from which an SVG element is rendered.

DrawingResources

Gets or sets an object used to collect extra information used to enhance the output of ResourceDictionary XAML.

EnsureViewboxPosition

Gets or sets a value to indicate applying a translate transform to the viewbox to ensure it is visible when rendered.

EnsureViewboxSize

Gets or sets a value to indicate preserving the original viewbox size when saving images.

ExternalResourcesAccessMode

Gets or sets a value indicating how to handled external resources.

FontFamilies

Gets the list of a custom font family objects.

FontFamilyNames

A dictionary specifying a map of the font family names to their locations.

FontLocations

Gets the list of the custom font locations or paths.

GenericCursive

Gets or set the globally available generic cursive font family.

GenericFantasy

Gets or set the globally available generic fantasy font family.

GenericMonospace

Gets or set the globally available generic Monospace font family.

GenericSansSerif

Gets or set the globally available generic sans serif font family.

GenericSerif

Gets or set the globally available generic serif font family.

HasFontFamilies

Gets a value specifying whether user-defined font families are associated with the target rendering.

HasPixelSize

Gets a value indicating the dimension or size of the target drawing is specified.

IgnoreRootViewbox

Gets or sets a value to indicate whether to turn off viewbox at the root of the drawing.

IncludeRuntime

Gets or sets a value indicating whether the SharpVectors.Runtime.dll classes are used in the generated output.

InteractiveMode

Gets or sets a value specifying the interactive mode of the target rendering.

this[string]

Gets or sets a well-known property value.

NeutralCultureInfo

Gets the neutral language for text rendering.

OptimizePath

Gets or sets a value indicating whether the path geometry is optimized using the StreamGeometry.

PixelHeight

Gets or sets the pixel height of the rendered drawing.

PixelWidth

Gets or sets the pixel width of the rendered drawing.

TextAsGeometry

Gets or sets a value indicating whether the texts are rendered as path geometry.

UserAgentCssFilePath

Gets or sets the basic style sheet that give default styles to any SVG document, similar to the user-agent or browsers styles.

UserCssFilePath

Gets or sets a stylesheet to override the styles in SVG documents using a custom user stylesheet, similar to that in browsers.

Visitors

Gets the list of custom rendering visitor implementation objects to be used by the SharpVectors.

Methods

AddFontFamilyName(string, string)

This adds a mapped font family name. A mapped name can be a localized name of a font family or an alternative font family name.

AddFontLocation(string)

This adds the specified local font location (file or directory) to enable the use of private fonts.

Clone()

This creates a new settings object that is a deep copy of the current instance.

LookupFontFamily(string, FontWeight, FontStyle, FontStretch)

This looks for or matches the specified font family name and attributes.

ReadXml(XmlReader)

This reads and sets its state or attributes stored in a XML format with the given reader.

WriteXml(XmlWriter)

This writes the current state or attributes of this object, in the XML format, to the media or storage accessible by the given writer.