API Reference
Class
VisioDuplicationExtensions
Editing helpers for duplicating Visio content while keeping copied shapes independent.
Inheritance
- Object
- VisioDuplicationExtensions
Methods
Duplicate 3 overloads
public static VisioPage Duplicate(VisioPage page, VisioPageDuplicationOptions options) #Returns:
VisioPageDuplicates this page in its owner document.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to duplicate.
- name System.String = null
- Optional name for the duplicate. When omitted, a unique copy name is generated.
Returns
The duplicated page.
Duplicate(OfficeIMO.Visio.VisioPage page, OfficeIMO.Visio.VisioPageDuplicationOptions options) #Duplicates this page in its owner document.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page to duplicate.
- options OfficeIMO.Visio.VisioPageDuplicationOptions
- Optional duplication settings.
Returns
The duplicated page.
public static VisioShapeSelection Duplicate(VisioShapeSelection selection, Double offsetX = 0.35, Double offsetY = -0.35, Boolean includeInternalConnectors = true) #Returns:
VisioShapeSelectionDuplicates a page-backed selection on the same page.
Parameters
- selection OfficeIMO.Visio.VisioShapeSelection
- Selection to duplicate.
- offsetX System.Double = 0.35
- Horizontal offset for duplicated top-level shapes and page-coordinate routing points.
- offsetY System.Double = -0.35
- Vertical offset for duplicated top-level shapes and page-coordinate routing points.
- includeInternalConnectors System.Boolean = true
- Whether connectors between duplicated shapes should also be copied.
Returns
A selection containing the duplicated root shapes.
DuplicatePage 2 overloads
public static VisioPage DuplicatePage(VisioDocument document, VisioPage sourcePage, VisioPageDuplicationOptions options) #Returns:
VisioPageDuplicates a page in the same document, preserving page settings, layers, shapes, and internal connectors.
Parameters
- document OfficeIMO.Visio.VisioDocument
- Document that owns the source page and receives the duplicate.
- sourcePage OfficeIMO.Visio.VisioPage
- Page to duplicate.
- name System.String = null
- Optional name for the duplicate. When omitted, a unique copy name is generated.
Returns
The duplicated page.
DuplicatePage(OfficeIMO.Visio.VisioDocument document, OfficeIMO.Visio.VisioPage sourcePage, OfficeIMO.Visio.VisioPageDuplicationOptions options) #Duplicates a page in the same document, preserving page settings, layers, shapes, and internal connectors.
Parameters
- document OfficeIMO.Visio.VisioDocument
- Document that owns the source page and receives the duplicate.
- sourcePage OfficeIMO.Visio.VisioPage
- Page to duplicate.
- options OfficeIMO.Visio.VisioPageDuplicationOptions
- Optional duplication settings.
Returns
The duplicated page.
public static VisioShapeSelection DuplicateShapes(VisioPage page, IEnumerable<VisioShape> shapes, Double offsetX = 0.35, Double offsetY = -0.35, Boolean includeInternalConnectors = true) #Returns:
VisioShapeSelectionDuplicates shapes on the same page and optionally copies connectors whose endpoints are both duplicated.
Parameters
- page OfficeIMO.Visio.VisioPage
- Page that owns the shapes.
- shapes System.Collections.Generic.IEnumerable{OfficeIMO.Visio.VisioShape}
- Shapes to duplicate. Nested children are copied with their selected ancestor.
- offsetX System.Double = 0.35
- Horizontal offset for duplicated top-level shapes and page-coordinate routing points.
- offsetY System.Double = -0.35
- Vertical offset for duplicated top-level shapes and page-coordinate routing points.
- includeInternalConnectors System.Boolean = true
- Whether connectors between duplicated shapes should also be copied.
Returns
A selection containing the duplicated root shapes.