Table of Contents

Class WpfDrawingContext

Namespace
SharpVectors.Renderers.Wpf
Assembly
SharpVectors.Rendering.Wpf.dll
public sealed class WpfDrawingContext : DependencyObject, IEnumerable<DrawingGroup>, IEnumerable
Inheritance
WpfDrawingContext
Implements
Inherited Members

Constructors

WpfDrawingContext()
WpfDrawingContext(bool, WpfDrawingSettings)

Properties

BaseUrls
Bounds
ClassVisitor
Count

Gets the number of elements contained in the drawing stack.

DpiScaleX

Gets the DPI scale on the X axis.

DpiScaleY

Gets the DPI scale on the Yaxis.

FontFamilyVisitor
IDVisitor
ImageVisitor
InteractiveMode
IsFragment
IsResourceDictionary
LinkVisitor
Links
Name
PixelsPerDip

Get or sets the PixelsPerDip at which the text should be rendered.

PixelsPerInchX

Gets the DPI along X axis.

PixelsPerInchY

Gets the DPI along Y axis.

RenderingClipRegion
Root
Settings
Tag

Methods

AddResources(Brush)
AddResources(Pen)
AddResources(SolidColorBrush)
AddUrl(string)
BeginDrawing(WpfDrawingDocument)
Clear()

Removes all objects from the drawing stack.

Contains(DrawingGroup)

Determines whether an element is in the drawing stack.

ContainsUrl(string)
CopyTo(DrawingGroup[], int)

Copies the drawing stack to an existing one-dimensional array, starting at the specified array index.

EndDrawing()
GetEnumerator()

Returns an enumerator that iterates through the collection.

GetPaintContext(string)
Initialize(WpfLinkVisitor, WpfFontFamilyVisitor, WpfEmbeddedImageVisitor)
IsPaintContext(string)
IsRegisteredId(string)
Peek()

Returns the object at the top of the drawing stack without removing it.

Pop()

Removes and returns the object at the top of the drawing stack.

Push(DrawingGroup)

Inserts an object at the top of the drawing stack.

RegisterDrawing(string, string, Drawing)
RegisterId(string)
RegisterPaintContext(WpfSvgPaintContext)
RemoveUrl(string)
ToArray()

Copies the drawing stack to a new array.

TrimExcess()

Sets the capacity to the actual number of elements in the drawing stack, if that number is less than 90 percent of current capacity.

UnRegisterId(string)
UnRegisterPaintContext(string)
Uninitialize()
UpdateBounds(Rect)