API Reference

Class

VisioDiagramPolishOptions

Namespace OfficeIMO.Visio
Assembly OfficeIMO.Visio
Modifiers sealed

Options for high-level diagram cleanup before saving or validating a Visio document.

Inheritance

  • Object
  • VisioDiagramPolishOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Properties

public Boolean ResizeShapesToText { get; set; } #

Whether top-level shapes should be resized to fit their text.

public Boolean ResizeConnectorLabelsToText { get; set; } #

Whether connector label boxes should be resized to fit their text.

public Boolean ResolveConnectorLabelOverlaps { get; set; } #

Whether connector labels should be moved away from page edges, unrelated shapes, and other labels.

public Boolean ResolveShapeOverlaps { get; set; } #

Whether top-level shapes should be moved apart when their bounds overlap.

public Boolean ResolveConnectorShapeIntersections { get; set; } #

Whether deterministic connector routes should be nudged around unrelated shapes.

public Boolean FitToContent { get; set; } #

Whether the page should be moved and optionally resized around the polished content.

public Boolean IncludeBackgroundPages { get; set; } #

Whether VisioDocument polish should include background pages.

public Boolean ResizePage { get; set; } #

Whether page fitting should resize the page.

public Double FitHorizontalMargin { get; set; } #

Horizontal content margin used by page fitting, in inches.

public Double FitVerticalMargin { get; set; } #

Vertical content margin used by page fitting, in inches.

public Nullable<OfficeFontInfo> ShapeFontInfo { get; set; } #

Optional font used when resizing shape text boxes.

public Double ShapeHorizontalPadding { get; set; } #

Horizontal padding used when resizing shape text boxes, in inches.

public Double ShapeVerticalPadding { get; set; } #

Vertical padding used when resizing shape text boxes, in inches.

public Double MinimumShapeWidth { get; set; } #

Minimum shape width used when resizing shape text boxes, in inches.

public Double MinimumShapeHeight { get; set; } #

Minimum shape height used when resizing shape text boxes, in inches.

public Nullable<OfficeFontInfo> ConnectorLabelFontInfo { get; set; } #

Optional font used when resizing connector label boxes.

public Double ConnectorLabelHorizontalPadding { get; set; } #

Horizontal padding used when resizing connector label boxes, in inches.

public Double ConnectorLabelVerticalPadding { get; set; } #

Vertical padding used when resizing connector label boxes, in inches.

public Double MinimumConnectorLabelWidth { get; set; } #

Minimum connector label width, in inches.

public Double MinimumConnectorLabelHeight { get; set; } #

Minimum connector label height, in inches.

public Nullable<Double> MaximumConnectorLabelWidth { get; set; } #

Maximum connector label width used for word wrapping, in inches.

public Double ConnectorLabelStep { get; set; } #

Search step used when moving connector labels, in inches.

public Int32 ConnectorLabelMaxAttempts { get; set; } #

Number of search rings to try when moving connector labels.

public Double ConnectorLabelPositionStep { get; set; } #

Connector path-position search step used when sliding labels along their connector path.

public Int32 ConnectorLabelMaxPositionShifts { get; set; } #

Number of positive and negative connector path-position shifts to try when moving connector labels.

public Int32 ConnectorLabelOptimizationPasses { get; set; } #

Number of deterministic whole-page connector label optimization passes.

public Double ConnectorRoutingObstaclePadding { get; set; } #

Padding added around obstacle shapes when rerouting connectors, in inches.

public Int32 ConnectorRoutingMaxLanes { get; set; } #

Number of positive and negative connector routing lanes to try on each axis.

public Int32 ConnectorRoutingPageOptimizationPasses { get; set; } #

Number of deterministic page-level connector routing optimization passes.

public Boolean ConnectorRoutingAvoidContainers { get; set; } #

Whether connector routing should avoid unrelated Visio containers.

public Boolean ConnectorRoutingAvoidBackgroundSurfaces { get; set; } #

Whether connector routing should avoid unrelated background surfaces such as zones, subnets, and trust boundaries.

public Boolean ConnectorRoutingAvoidDiagramAdornments { get; set; } #

Whether connector routing should avoid generated adornments such as zone captions.

public Boolean ConnectorRoutingAvoidGroupChildren { get; set; } #

Whether connector routing should avoid unrelated child shapes inside groups.

public Boolean ConnectorRoutingAvoidConnectorCrossings { get; set; } #

Whether connector routing should prefer lanes that reduce connector-to-connector crossings.

public Double ShapeOverlapStep { get; set; } #

Search step used when moving overlapping shapes, in inches.

public Int32 ShapeOverlapMaxAttempts { get; set; } #

Number of search rings to try when moving overlapping shapes.

public Boolean IncludeContainersInShapeOverlapResolution { get; set; } #

Whether container and background surface shapes should participate in shape overlap cleanup.

public Boolean AvoidConnectorLabelShapeOverlaps { get; set; } #

Whether connector labels should avoid unrelated shapes.

public Boolean AvoidConnectorLabelOverlaps { get; set; } #

Whether connector labels should avoid labels that have already been placed.

public Boolean AvoidConnectorLabelConnectorPathOverlaps { get; set; } #

Whether connector labels should avoid unrelated connector paths.

public Boolean PreferConnectorLabelsInsideEndpointZones { get; set; } #

Whether connector labels should prefer common endpoint zones and avoid unrelated background zones.