VisioDiagramPolishOptions
OfficeIMO.Visio
Options for high-level diagram cleanup before saving or validating a Visio document.
Inheritance
- object
- VisioDiagramPolishOptions
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Accepted by parameters 4
- Method VisioDiagramPolishExtensions.PolishDiagram
- Method VisioDiagramPolishExtensions.PolishDiagrams
- Extension method VisioDocument.PolishDiagrams
- Extension method VisioPage.PolishDiagram
Constructors
public VisioDiagramPolishOptions() #Inherited Methods
Properties
public bool ResizeShapesToText { get; set; } #Whether top-level shapes should be resized to fit their text.
public bool ResizeConnectorLabelsToText { get; set; } #Whether connector label boxes should be resized to fit their text.
public bool ResolveConnectorLabelOverlaps { get; set; } #Whether connector labels should be moved away from page edges, unrelated shapes, and other labels.
public bool ResolveShapeOverlaps { get; set; } #Whether top-level shapes should be moved apart when their bounds overlap.
public bool ResolveConnectorShapeIntersections { get; set; } #Whether deterministic connector routes should be nudged around unrelated shapes.
public bool FitToContent { get; set; } #Whether the page should be moved and optionally resized around the polished content.
public bool IncludeBackgroundPages { get; set; } #Whether VisioDocument polish should include background pages.
public bool 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 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 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 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 int 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 int ConnectorLabelMaxPositionShifts { get; set; } #Number of positive and negative connector path-position shifts to try when moving connector labels.
public int 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 int ConnectorRoutingMaxLanes { get; set; } #Number of positive and negative connector routing lanes to try on each axis.
public int ConnectorRoutingPageOptimizationPasses { get; set; } #Number of deterministic page-level connector routing optimization passes.
public bool ConnectorRoutingAvoidContainers { get; set; } #Whether connector routing should avoid unrelated Visio containers.
public bool ConnectorRoutingAvoidBackgroundSurfaces { get; set; } #Whether connector routing should avoid unrelated background surfaces such as zones, subnets, and trust boundaries.
public bool ConnectorRoutingAvoidDiagramAdornments { get; set; } #Whether connector routing should avoid generated adornments such as zone captions.
public bool ConnectorRoutingAvoidGroupChildren { get; set; } #Whether connector routing should avoid unrelated child shapes inside groups.
public bool 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 int ShapeOverlapMaxAttempts { get; set; } #Number of search rings to try when moving overlapping shapes.
public bool IncludeContainersInShapeOverlapResolution { get; set; } #Whether container and background surface shapes should participate in shape overlap cleanup.
public bool AvoidConnectorLabelShapeOverlaps { get; set; } #Whether connector labels should avoid unrelated shapes.
public bool AvoidConnectorLabelOverlaps { get; set; } #Whether connector labels should avoid labels that have already been placed.
public bool AvoidConnectorLabelConnectorPathOverlaps { get; set; } #Whether connector labels should avoid unrelated connector paths.
public bool PreferConnectorLabelsInsideEndpointZones { get; set; } #Whether connector labels should prefer common endpoint zones and avoid unrelated background zones.