XpsDevice Class

XpsDevice class

Represents rendering to a xps document.

public class XpsDevice : Device<XpsGraphicContext, XpsRenderingOptions>

Constructors

NameDescription
XpsDevice(ICreateStreamProvider)Initializes a new instance of the XpsDevice class.
XpsDevice(Stream)Initializes a new instance of the XpsDevice class.
XpsDevice(string)Initializes a new instance of the XpsDevice class.
XpsDevice(XpsRenderingOptions, ICreateStreamProvider)Initializes a new instance of the XpsDevice class by rendering options and stream provider.
XpsDevice(XpsRenderingOptions, Stream)Initializes a new instance of the XpsDevice class by rendering options and output stream.
XpsDevice(XpsRenderingOptions, string)Initializes a new instance of the XpsDevice class by rendering options and output file name.

Properties

NameDescription
GraphicContext { get; }
Options { get; }

Methods

NameDescription
virtual AddRect(RectangleF)
virtual BeginDocument(Document)
virtual BeginElement(Element, RectangleF)
virtual BeginPage(SizeF)
virtual Clip(FillRule)
virtual ClosePath()
virtual CubicBezierTo(PointF, PointF, PointF)
Dispose()
virtual DrawImage(byte[], WebImageFormat, RectangleF)
virtual EndDocument()
virtual EndElement(Element)
virtual EndPage()
virtual Fill(FillRule)
virtual FillText(string, PointF)
virtual Flush()
virtual LineTo(PointF)
virtual MoveTo(PointF)
virtual RestoreGraphicContext()
virtual SaveGraphicContext()
virtual Stroke()
virtual StrokeAndFill(FillRule)
virtual StrokeText(string, PointF)

Other Members

NameDescription
class XpsGraphicContextHolds current graphics control parameters for the XpsDevice. These parameters define the global framework within which the graphics operators execute.

See Also