XpsDocument.Insert

XpsDocument.Insert<T> method

Inserts an element (Canvas, Path, or Glyphs) to the active page at index position.

public T Insert<T>(int index, T element)
    where T : XpsContentElement
ParameterDescription
TThe type of the element.
indexPosition at which an element should be inserted.
elementElement to be inserted.

Return Value

Inserted element.

See Also