XpsCanvas class

XpsCanvas class

Class incapsulating Canvas element features.
This element groups elements together. For example, Glyphs and Path elements
can be grouped in a canvas in order to be identified as a unit (as a hyperlink destination) or
to apply a composed property value to each child and ancestor element.

Inheritance: XpsCanvasXpsContentElementXpsHyperlinkElementXpsElementXpsObject

The XpsCanvas type exposes the following members:

Properties

NameDescription
countReturns number of child elements.
hyperlink_targetReturns/sets hyperlink target object.
render_transformReturns/sets the affine transformation matrix establishing a new coordinate frame
for all attributes of the element and for all child elements (if any).
clipReturns/sets the path geometry instance limiting the rendered region of the element.
opacityReturns/sets the value defining the uniform transparency of the element.
opacity_maskReturns/sets the brush specifying a mask of alpha values
that is applied to the element in the same fashion as the Opacity attribute,
but allowing different alpha values for different areas of the element.
edge_modeReturns/sets the value that controls how edges of paths within the canvas are rendered.

Indexer

NameDescription
[index]Returns an item at the specified index.

Methods

NameDescription
add_canvas()Adds a new canvas to this canvas’s child list.
insert_canvas(index)Inserts a new canvas to this canvas’s child list at
add_path(data)Adds a new path to this canvas’s child list.
insert_path(index, data)Inserts a new path to this canvas’s child list at
add_glyphs(font_family, font_size, font_style, origin_x, origin_y, unicode_string)Adds new glyphs to this canvas’s child list.
insert_glyphs(index, font_family, font_size, font_style, origin_x, origin_y, unicode_string)Inserts new glyphs to this canvas’s child list at
clone()Clones this canvas.

See Also