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

PropertyDescription
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]

Methods

MethodDescription
add_canvasAdds a new canvas to this canvas’s child list.
insert_canvasInserts a new canvas to this canvas’s child list at index position.
add_pathAdds a new path to this canvas’s child list.
insert_pathInserts a new path to this canvas’s child list at index position.
add_glyphsAdds new glyphs to this canvas’s child list.
insert_glyphsInserts new glyphs to this canvas’s child list at index position.
cloneClones this canvas.

See Also