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 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 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.