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
getGraphicContext
getOptions

Methods

NameDescription
addRect(RectangleF)
beginDocument(Document)
beginElement(Element, RectangleF)
beginPage(SizeF)
clip(FillRule)
closePath()
cubicBezierTo(PointF, PointF, PointF)
dispose()
drawImage(byte[], WebImageFormat, RectangleF)
endDocument()
endElement(Element)
endPage()
fill(FillRule)
fillText(String, PointF)
flush()
lineTo(PointF)
moveTo(PointF)
restoreGraphicContext()
saveGraphicContext()
stroke()
strokeAndFill(FillRule)
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