API Reference

Class

VisioContainerEditingExtensions

Namespace OfficeIMO.Visio
Assembly OfficeIMO.Visio
Modifiers static

Editing helpers for maintaining Visio-native container membership and bounds.

Inheritance

  • Object
  • VisioContainerEditingExtensions

Methods

AddToContainer 3 overloads
public static VisioShape AddToContainer(VisioPage page, VisioShape container, IEnumerable<VisioShape> members, Boolean resizeToFit = true, VisioContainerOptions resizeOptions = null) #
Returns: VisioShape

Adds one member shape to a Visio-native container and optionally resizes the container around all current members.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
container OfficeIMO.Visio.VisioShape requiredposition: 1
member OfficeIMO.Visio.VisioShape requiredposition: 2
resizeToFit System.Boolean = true optionalposition: 3
resizeOptions OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 4
AddToContainer(OfficeIMO.Visio.VisioPage page, OfficeIMO.Visio.VisioShape container, System.Collections.Generic.IEnumerable{OfficeIMO.Visio.VisioShape} members, System.Boolean resizeToFit, OfficeIMO.Visio.VisioContainerOptions resizeOptions) #

Adds member shapes to a Visio-native container and optionally resizes the container around all current members.

Parameters

page OfficeIMO.Visio.VisioPage required
container OfficeIMO.Visio.VisioShape required
members System.Collections.Generic.IEnumerable{OfficeIMO.Visio.VisioShape} required
resizeToFit System.Boolean required
resizeOptions OfficeIMO.Visio.VisioContainerOptions required
public static VisioShapeSelection AddToContainer(VisioShapeSelection selection, VisioShape container, Boolean resizeToFit = true, VisioContainerOptions resizeOptions = null) #
Returns: VisioShapeSelection

Adds all selected shapes to an existing Visio-native container.

Parameters

selection OfficeIMO.Visio.VisioShapeSelection requiredposition: 0
container OfficeIMO.Visio.VisioShape requiredposition: 1
resizeToFit System.Boolean = true optionalposition: 2
resizeOptions OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 3
public static VisioShape ApplyContainerOptions(VisioPage page, VisioShape container, VisioContainerOptions options, Boolean refit = false) #
Returns: VisioShape

Applies native container metadata and visual style to an existing Visio-native container.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape to update.
options OfficeIMO.Visio.VisioContainerOptions requiredposition: 2
Container metadata and style options.
refit System.Boolean = false optionalposition: 3
Whether the container should be refit around current members after metadata is applied.
public static VisioShape ConfigureContainer(VisioPage page, VisioShape container, Action<VisioContainerOptions> configure, Boolean refit = false) #
Returns: VisioShape

Updates native container metadata and visual style using a callback initialized from the current container state.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape to update.
configure System.Action{OfficeIMO.Visio.VisioContainerOptions} requiredposition: 2
Option callback.
refit System.Boolean = false optionalposition: 3
Whether the container should be refit around current members after metadata is applied.
public static VisioContainerInfo GetContainerInfo(VisioPage page, VisioShape container) #
Returns: VisioContainerInfo

Gets typed metadata and membership information for a Visio-native container.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape.
public static IReadOnlyList<VisioShape> GetContainerMembers(VisioPage page, VisioShape container) #
Returns: IReadOnlyList<VisioShape>

Gets the shapes currently referenced by a Visio-native container.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape.
public static VisioContainerOptions GetContainerOptions(VisioPage page, VisioShape container) #
Returns: VisioContainerOptions

Gets editable options initialized from a Visio-native container's current metadata and visual style.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape.
public static VisioShape RefitContainer(VisioPage page, VisioShape container, VisioContainerOptions options = null) #
Returns: VisioShape

Resizes a Visio-native container so it encloses its current typed members.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
Page that owns the container.
container OfficeIMO.Visio.VisioShape requiredposition: 1
Container shape to resize.
options OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 2
Optional margin and heading settings used for the calculated bounds.
RemoveFromContainer 3 overloads
public static VisioShape RemoveFromContainer(VisioPage page, VisioShape container, IEnumerable<VisioShape> members, Boolean resizeToFit = true, VisioContainerOptions resizeOptions = null) #
Returns: VisioShape

Removes one member shape from a Visio-native container and optionally resizes the container around remaining members.

Parameters

page OfficeIMO.Visio.VisioPage requiredposition: 0
container OfficeIMO.Visio.VisioShape requiredposition: 1
member OfficeIMO.Visio.VisioShape requiredposition: 2
resizeToFit System.Boolean = true optionalposition: 3
resizeOptions OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 4
RemoveFromContainer(OfficeIMO.Visio.VisioPage page, OfficeIMO.Visio.VisioShape container, System.Collections.Generic.IEnumerable{OfficeIMO.Visio.VisioShape} members, System.Boolean resizeToFit, OfficeIMO.Visio.VisioContainerOptions resizeOptions) #

Removes member shapes from a Visio-native container and optionally resizes the container around remaining members.

Parameters

page OfficeIMO.Visio.VisioPage required
container OfficeIMO.Visio.VisioShape required
members System.Collections.Generic.IEnumerable{OfficeIMO.Visio.VisioShape} required
resizeToFit System.Boolean required
resizeOptions OfficeIMO.Visio.VisioContainerOptions required
public static VisioShapeSelection RemoveFromContainer(VisioShapeSelection selection, VisioShape container, Boolean resizeToFit = true, VisioContainerOptions resizeOptions = null) #
Returns: VisioShapeSelection

Removes all selected shapes from an existing Visio-native container.

Parameters

selection OfficeIMO.Visio.VisioShapeSelection requiredposition: 0
container OfficeIMO.Visio.VisioShape requiredposition: 1
resizeToFit System.Boolean = true optionalposition: 2
resizeOptions OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 3
public static VisioShape WrapInContainer(VisioShapeSelection selection, String id, String text, VisioContainerOptions options = null) #
Returns: VisioShape

Creates a Visio-native container around the selected shapes.

Parameters

selection OfficeIMO.Visio.VisioShapeSelection requiredposition: 0
id System.String requiredposition: 1
text System.String requiredposition: 2
options OfficeIMO.Visio.VisioContainerOptions = null optionalposition: 3