agentleFS
aspose-diagramaspose-diagram/agentic-net-examples/working-with-shapes/agents.md

agentic-net-examples / working-with-shapes

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

AI-generated, compiler-validated C# examples for the Aspose.Diagram for .NET API — Working With Shapes category. You are a C# developer specializing in Visio diagram processing using Aspose.Diagram for .NET. You are working in the Working With Shapes category. Your task is to write clean, compilable C# console examples that demonstrate Aspose.Diagram API usage for working with shapes operations. You always use explicit types (never var), include all required using directives, and follow the patterns established in this category. The dominant…

The file

We split this agents.md into the rules it gives an agent

12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use explicit types — Diagram diagram = new Diagram(...) not var diagram = ...

    line 38
  2. Very specific:

    Use SaveFileFormat enum in PascalCase: SaveFileFormat.Vsdx, SaveFileFormat.Pdf

    line 40
  3. Very specific:

    Use BOOL.True / BOOL.False for Aspose BOOL properties — never plain true/false

    line 41
  4. Very specific:

    Use var for any variable declaration

    line 53
  5. Very specific:

    Use using (Diagram diagram = ...) — Diagram does not implement IDisposable

    line 54
  6. Very specific:

    Use SaveFileFormat.VSDX or other ALL_CAPS enum values

    line 55
  7. Very specific:

    Use System.Windows.Forms — not available in net8.0 console project

    line 56
  8. Very specific:

    Use NUnit Assert — not available, use Console.WriteLine and manual checks

    line 57
  9. Distinctive:

    Use PowerShell syntax inside C# files

    line 58
  10. Distinctive:

    ADD SHAPE — Use diagram.AddMaster(stencilPath, masterName) to load a master, then diagram.AddShape(pinX, pinY, width, height, masterName, …

    line 118
  11. Distinctive:

    READ SHAPE PROPERTIES (custom/Props) — Iterate shape.Props: foreach (Prop property in shape.Props) { Console.WriteLine(property.Label.Value …

    line 126
  12. Distinctive:

    Read property by name: Prop property = shape.Props.GetProp("Name1").

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

Working With Shapes

AI-generated, compiler-validated C# examples for the Aspose.Diagram for .NET API — Working With Shapes category.

Statistics

MetricValue
Examples459
Pass Rate100.0%
Aspose.Diagram Version26.9.0
Target Frameworknet8.0
Last Updated2026-09-24

Persona

You are a C# developer specializing in Visio diagram processing using Aspose.Diagram for .NET. You are working in the Working With Shapes category. Your task is to write clean, compilable C# console examples that demonstrate Aspose.Diagram API usage for working with shapes operations. You always use explicit types (never var), include all required using directives, and follow the patterns established in this category.

Boundaries

Always

  • Use explicit types — Diagram diagram = new Diagram(...) not var diagram = ...
  • Include using Aspose.Diagram; and using Aspose.Diagram.Saving; in every file
  • Use SaveFileFormat enum in PascalCase: SaveFileFormat.Vsdx, SaveFileFormat.Pdf
  • Use BOOL.True / BOOL.False for Aspose BOOL properties — never plain true/false
  • Wrap entry point in static void Main() inside class Program
  • Handle FileNotFoundException with try/catch when loading files

Ask First

  • Multi-file projects or solutions
  • External dependencies beyond Aspose.Diagram and Aspose.Drawing
  • Platform-specific code (Windows Forms, WPF, ASP.NET)

Never

  • Use var for any variable declaration
  • Use using (Diagram diagram = ...) — Diagram does not implement IDisposable
  • Use SaveFileFormat.VSDX or other ALL_CAPS enum values
  • Use System.Windows.Forms — not available in net8.0 console project
  • Use NUnit Assert — not available, use Console.WriteLine and manual checks
  • Use PowerShell syntax inside C# files

Required Namespaces

NamespaceFilesPurpose
Aspose.Diagram459Core diagram API
System459Console, Math, DateTime, Exception
System.IO371File, Stream, Path, Directory operations
Aspose.Diagram.Saving220Save options (PDF, PNG, HTML, SVG, XPS)
System.Collections.Generic75List, Dictionary, HashSet
Aspose.Diagram.Manipulation19Supporting utilities
System.Text.Json18JSON serialization
System.Linq7LINQ queries on collections
System.IO.Compression5Supporting utilities
Aspose.Drawing.Text3Font enumeration via InstalledFontCollection
System.Text.RegularExpressions3Supporting utilities
System.Data3Supporting utilities
System.Diagnostics2Supporting utilities
System.Xml2Supporting utilities
System.Text2StringBuilder
System.Xml.Linq2Supporting utilities
Aspose.Diagram.Vba1Supporting utilities
System.Text.Json.Serialization1Supporting utilities
System.Threading1Supporting utilities
Aspose.Drawing1Supporting utilities
Aspose.Diagram.Properties1Supporting utilities
Aspose.Cells1Supporting utilities
System.Threading.Tasks1Supporting utilities
System.Globalization1Supporting utilities

Common Code Pattern

The dominant workflow in this category is: Load → Modify → Save

using System;
using Aspose.Diagram;
using Aspose.Diagram.Saving;

class Program
{
    static void Main()
    {
        // 1. Load or create diagram
        Diagram diagram = new Diagram("input.vsdx");

        // 2. Perform category-specific operations
        // ...

        // 3. Save result
        diagram.Save("output.vsdx", SaveFileFormat.Vsdx);
    }
}

Domain Knowledge

Category-specific API rules and gotchas:

  • ADD SHAPE — Use diagram.AddMaster(stencilPath, masterName) to load a master, then diagram.AddShape(pinX, pinY, width, height, masterName, pageIndex) to add the shape. Returns long shape ID.
  • Retrieve shape after adding: Shape shape = page.Shapes.GetShape(shapeId); (cast long to int if needed)
  • Set shape text: shape.Text.Value.Add(new Txt("text here"));
  • Set shape type: shape.Type = TypeValue.Shape;
  • Set shape style: shape.TextStyle = diagram.StyleSheets[index];
  • RETRIEVE SHAPE INFO — Iterate page shapes: foreach (Aspose.Diagram.Shape shape in page.Shapes); Access shape.ID, shape.Name, shape.Master.Name.
  • COPY SHAPES — Copy all shapes from source to new diagram: load source, add masters with diagram.AddMaster(), copy themes with newDiagram.CopyTheme(srcVisio), copy pagesheet with newDiagram.Pages[0].PageSheet.Copy(srcPage.PageSheet), then add each shape to newDiagram.Pages[0].Shapes.Add(shape).
  • Copy single shape to another instance: newShape.Copy(diagram.Pages[0].Shapes[0]); then set newShape.ID and newShape.XForm.PinX/PinY.
  • READ SHAPE PROPERTIES (custom/Props) — Iterate shape.Props: foreach (Prop property in shape.Props) { Console.WriteLine(property.Label.Value + ": " + property.Value.Val); }
  • Read property by name: Prop property = shape.Props.GetProp("Name1");

Examples

FileKey APIsTask
access-a-shape-using-its-name-and-compare-its-id-with-the-expected-identifier.csDiagram, Pages, ShapesAccess a shape using its name and compare its id with the expected identifier
access-line-property-details-like-dash-style-and-thickness-when-line-inheritance-is-enabled.csDiagram, Pages, ShapesAccess line property details like dash style and thickness when line inheritance is enabled
access-the-inheritfill-property-of-a-shape-to-retrieve-inherited-fill-settings.csDiagram, Pages, ShapesAccess the inheritfill property of a shape to retrieve inherited fill settings
access-the-layout-property-of-a-connector-shape-and-modify-its-x-and-y-coordinates-programmatically.csDiagram, Layout, PagesAccess the layout property of a connector shape and modify its x and y coordinates programmatically
add-a-circle-shape-with-a-specific-radius-to-the-diagram-s-shapes-collection.csDiagram, Page, PagesAdd a circle shape with a specific radius to the diagram s shapes collection
add-a-custom-connection-point-at-coordinates-1-2-3-4-to-a-shape-using-connections-add-method.csConnection, Diagram, PagesAdd a custom connection point at coordinates 1 2 3 4 to a shape using connections add method
add-a-master-shape-from-a-stencil-file-to-the-retrieved-page-using-its-master-name.csAddMaster, AddShape, DiagramAdd a master shape from a stencil file to the retrieved page using its master name
add-a-new-rectangle-shape-to-the-page-using-diagram-addshape-with-master-id-and-position.csAddMaster, AddShape, DiagramAdd a new rectangle shape to the page using diagram addshape with master id and position
add-a-rectangle-shape-with-defined-width-and-height-to-the-diagram-s-shapes-collection.csAddShape, Diagram, PagesAdd a rectangle shape with defined width and height to the diagram s shapes collection
add-a-triangle-shape-and-set-its-geometry-points-before-inserting-into-the-shapes-collection.csDiagram, Page, PagesAdd a triangle shape and set its geometry points before inserting into the shapes collection
add-connection-points-at-the-four-corners-of-a-rectangular-shape-by-calculating-corner-coordinates-from-locpin-values.csAddShape, Connection, DiagramAdd connection points at the four corners of a rectangular shape by calculating corner coordinates from locpin values
add-custom-property-to-a-shape-indicating-the-applied-theme-name-for-future-reference.csDiagram, Pages, PropAdd custom property to a shape indicating the applied theme name for future reference
add-error-handling-to-skip-shapes-lacking-locpinx-y-cells-while-calculating-absolute-coordinates.csDiagram, Pages, SaveAdd error handling to skip shapes lacking locpinx y cells while calculating absolute coordinates
add-the-modified-shape-back-to-the-page-s-shapes-collection-and-ensure-it-appears-in-the-diagram.csAddShape, Diagram, PageAdd the modified shape back to the page s shapes collection and ensure it appears in the diagram
adjust-line-inheritance-flag-based-on-shape-type-enabling-inheritance-for-connectors-only.csDiagram, Pages, SaveAdjust line inheritance flag based on shape type enabling inheritance for connectors only
adjust-the-duplicated-shape-s-position-by-ten-units-and-assign-it-a-new-unique-id.csAddShape, Diagram, PagesAdjust the duplicated shape s position by ten units and assign it a new unique id
adjust-the-layout-geometry-of-a-shape-after-theme-change-to-maintain-proper-alignment-on-the-page.csDiagram, Pages, PresetThemeAdjust the layout geometry of a shape after theme change to maintain proper alignment on the page
adjust-the-perspective-angle-of-a-shape-to-30-degrees-before-exporting-to-pdf.csDiagram, Pages, PdfSaveOptionsAdjust the perspective angle of a shape to 30 degrees before exporting to pdf
adjust-the-width-of-a-group-sub-shape-to-5-0-inches-by-invoking-setwidth-with-double-precision.csDiagram, Pages, SaveAdjust the width of a group sub shape to 5 0 inches by invoking setwidth with double precision
adjust-the-y-coordinate-of-a-shape-by-adding-a-defined-offset-value.csDiagram, Pages, SaveAdjust the y coordinate of a shape by adding a defined offset value
after-adding-a-shape-immediately-retrieve-its-geometry-data-to-confirm-correct-placement.csAddShape, Diagram, PagesAfter adding a shape immediately retrieve its geometry data to confirm correct placement
after-rotating-a-shape-capture-its-new-bounding-box-coordinates-and-write-them-to-a-json-report.csDiagram, Pages, SaveAfter rotating a shape capture its new bounding box coordinates and write them to a json report
apply-a-10-degree-rotationzangle-to-all-shapes-and-export-the-diagram-to-pdf.csDiagram, Pages, PdfSaveOptionsApply a 10 degree rotationzangle to all shapes and export the diagram to pdf
apply-a-3-d-rotation-transformation-to-a-shape-after-theme-assignment-to-create-perspective-view.csDiagram, Pages, PresetThemeApply a 3 d rotation transformation to a shape after theme assignment to create perspective view
apply-a-5-degree-rotationxangle-to-shapes-taller-than-200-points-and-export-to-pdf.csDiagram, Pages, PdfSaveOptionsApply a 5 degree rotationxangle to shapes taller than 200 points and export to pdf
apply-a-dashed-line-style-to-a-shape-by-assigning-the-appropriate-dash-pattern.csAddShape, Diagram, PagesApply a dashed line style to a shape by assigning the appropriate dash pattern
apply-a-global-line-style-change-to-all-shapes-and-save-the-updated-diagram.csDiagram, Pages, SaveApply a global line style change to all shapes and save the updated diagram
apply-a-global-setting-to-enforce-fill-inheritance-across-all-shapes-in-a-diagram-before-export.csDiagram, Pages, SaveApply a global setting to enforce fill inheritance across all shapes in a diagram before export
apply-a-gradient-fill-theme-to-shapes-whose-area-exceeds-a-specified-size-threshold.csDiagram, Pages, SaveApply a gradient fill theme to shapes whose area exceeds a specified size threshold
apply-a-gradient-fill-to-shapes-while-preserving-existing-paragraph-formatting-and-colors.csDiagram, Pages, SaveApply a gradient fill to shapes while preserving existing paragraph formatting and colors
apply-a-predefined-theme-to-the-newly-created-shape-and-confirm-theme-properties-are-applied.csDiagram, Pages, PresetThemeApply a predefined theme to the newly created shape and confirm theme properties are applied
apply-a-rotation-of-45-degrees-to-a-shape-s-xform-and-verify-orientation.csDiagram, Pages, SaveApply a rotation of 45 degrees to a shape s xform and verify orientation
apply-a-scaling-factor-of-1-2-to-both-width-and-height-of-a-shape-using-setwidth-and-setheight.csAddShape, Diagram, PageApply a scaling factor of 1 2 to both width and height of a shape using setwidth and setheight
apply-a-theme-to-shapes-only-when-their-existing-fill-color-matches-a-specific-rgb-value.csDiagram, Pages, PresetThemeApply a theme to shapes only when their existing fill color matches a specific rgb value
apply-a-theme-to-shapes-whose-names-start-with-process-using-a-case-insensitive-comparison.csDiagram, Pages, PresetThemeApply a theme to shapes whose names start with process using a case insensitive comparison
apply-a-uniform-distancefromground-of-15-points-to-all-shapes-in-the-diagram.csDiagram, Pages, SaveApply a uniform distancefromground of 15 points to all shapes in the diagram
apply-combined-x-y-and-z-rotations-of-30-degrees-each-to-a-shape.csDiagram, Pages, SaveApply combined x y and z rotations of 30 degrees each to a shape
apply-conditional-formatting-to-paragraphs-based-on-their-length-using-larger-fonts-for-longer-texts.csDiagram, Page, PagesApply conditional formatting to paragraphs based on their length using larger fonts for longer texts
apply-conditional-logic-to-enable-fill-inheritance-only-for-shapes-whose-area-exceeds-a-threshold.csDiagram, Pages, SaveApply conditional logic to enable fill inheritance only for shapes whose area exceeds a threshold
apply-conditional-logic-to-set-shape-height-only-if-current-height-is-less-than-a-specified-threshold.csDiagram, Pages, SaveApply conditional logic to set shape height only if current height is less than a specified threshold
apply-different-themes-to-shapes-based-on-their-layer-assignment-within-the-diagram.csDiagram, Pages, PresetThemeApply different themes to shapes based on their layer assignment within the diagram
apply-the-preset-theme-bubble-to-the-retrieved-shape-and-confirm-theme-properties-changed.csDiagram, Pages, PresetThemeApply the preset theme bubble to the retrieved shape and confirm theme properties changed
assign-a-custom-property-category-to-a-shape-and-later-query-shapes-sharing-this-property.csDiagram, Page, PagesAssign a custom property category to a shape and later query shapes sharing this property
attach-a-newly-created-connector-to-a-gluing-enabled-shape-and-verify-successful-attachment.csAddShape, ConnectShapesViaConnector, DiagramAttach a newly created connector to a gluing enabled shape and verify successful attachment
automatically-disable-gluing-on-shapes-once-they-reach-a-maximum-number-of-attached-connectors.csDiagram, Pages, SaveAutomatically disable gluing on shapes once they reach a maximum number of attached connectors
batch-convert-all-shapes-across-multiple-diagrams-to-high-resolution-png-files.csDiagram, ImageSaveOptions, PagesBatch convert all shapes across multiple diagrams to high resolution png files
batch-convert-all-shapes-on-a-specific-page-to-individual-svg-files.csDiagram, Pages, SVGSaveOptionsBatch convert all shapes on a specific page to individual svg files
batch-job-sets-line-jump-style-to-arc-for-connectors-whose-source-shape-is-a-decision-node.csDiagram, Layout, PagesBatch job sets line jump style to arc for connectors whose source shape is a decision node
batch-process-a-folder-of-vsdx-files-setting-each-connector-s-jump-style-to-none.csDiagram, Layout, PagesBatch process a folder of vsdx files setting each connector s jump style to none
batch-process-diagrams-in-a-folder-rotating-all-shapes-named-arrow-by-ninety-degrees-before-saving.csDiagram, Pages, SaveBatch process diagrams in a folder rotating all shapes named arrow by ninety degrees before saving
batch-process-multiple-vsdx-files-in-a-directory-resizing-each-target-shape-to-a-predefined-width.csDiagram, Pages, SaveBatch process multiple vsdx files in a directory resizing each target shape to a predefined width
batch-rotate-all-shapes-with-ids-greater-than-50-by-fifteen-degrees-across-multiple-pages.csDiagram, Pages, SaveBatch rotate all shapes with ids greater than 50 by fifteen degrees across multiple pages
benchmark-performance-impact-of-toggling-fill-inherit-on-large-diagrams-containing-thousands-of-shapes.csDiagram, Pages, SaveBenchmark performance impact of toggling fill inherit on large diagrams containing thousands of shapes
calculate-absolute-pinx-and-piny-for-all-sub-shapes-within-a-group-and-log-results-to-console.csDiagram, Pages, ShapesCalculate absolute pinx and piny for all sub shapes within a group and log results to console
calculate-the-bounding-box-of-a-group-shape-by-aggregating-absolute-pinx-y-values-of-its-child-shapes.csDiagram, Pages, diagramCalculate the bounding box of a group shape by aggregating absolute pinx y values of its child shapes
change-a-shape-s-line-color-to-blue-and-set-line-weight-to-two-points.csDiagram, Pages, SaveChange a shape s line color to blue and set line weight to two points
change-a-shape-s-line-weight-to-a-new-value-and-verify-the-update-via-the-line-property.csDiagram, Pages, SaveChange a shape s line weight to a new value and verify the update via the line property
change-the-fill-gradient-of-a-shape-to-a-two-color-scheme-after-theme-application.csDiagram, Pages, SaveChange the fill gradient of a shape to a two color scheme after theme application
change-the-second-paragraph-s-font-style-to-italic-and-set-its-text-color-to-dark-blue.csDiagram, Pages, SaveChange the second paragraph s font style to italic and set its text color to dark blue
change-the-shadow-effect-of-a-shape-after-applying-a-theme-to-enhance-visual-depth.csDiagram, Pages, PresetThemeChange the shadow effect of a shape after applying a theme to enhance visual depth
check-for-missing-shapes-by-id-before-applying-themes-and-log-any-discrepancies-found.csDiagram, Pages, PresetThemeCheck for missing shapes by id before applying themes and log any discrepancies found
check-that-locpinx-and-locpiny-cells-contain-numeric-values-before-performing-absolute-pin-calculations.csDiagram, Pages, SaveCheck that locpinx and locpiny cells contain numeric values before performing absolute pin calculations
check-the-line-inheritance-status-of-a-shape-by-reading-the-line-inherit-attribute.csDiagram, Pages, ShapesCheck the line inheritance status of a shape by reading the line inherit attribute
check-whether-a-shape-inherits-its-fill-from-a-master-and-log-the-inheritance-status.csDiagram, Pages, ShapesCheck whether a shape inherits its fill from a master and log the inheritance status
check-whether-a-shape-is-gluing-enabled-before-attempting-to-attach-a-connector.csAddShape, ConnectShapesViaConnector, DiagramCheck whether a shape is gluing enabled before attempting to attach a connector
clone-a-shape-modify-its-width-and-place-the-cloned-instance-on-a-different-page.csDiagram, Page, PagesClone a shape modify its width and place the cloned instance on a different page
clone-a-shape-preserve-its-gluing-settings-and-insert-the-cloned-shape-elsewhere-in-the-diagram.csAddShape, Diagram, PagesClone a shape preserve its gluing settings and insert the cloned shape elsewhere in the diagram
clone-an-existing-shape-apply-a-different-theme-to-the-clone-and-place-it-on-another-page.csDiagram, Page, PagesClone an existing shape apply a different theme to the clone and place it on another page
combine-fill-and-line-inheritance-checks-to-determine-if-a-shape-fully-inherits-formatting-from-its-master.csDiagram, Pages, ShapesCombine fill and line inheritance checks to determine if a shape fully inherits formatting from its master
compare-fill-inheritance-values-between-original-and-cloned-diagrams-to-ensure-consistency-after-duplication.csDiagramCompare fill inheritance values between original and cloned diagrams to ensure consistency after duplication
compare-line-jump-styles-between-two-diagram-versions-to-detect-visual-differences.csDiagramCompare line jump styles between two diagram versions to detect visual differences
compare-paragraph-text-between-two-versions-of-a-diagram-and-highlight-differences-programmatically.csDiagram, diagramCompare paragraph text between two versions of a diagram and highlight differences programmatically
compare-shape-appearance-before-and-after-theme-application-by-rendering-thumbnails-and-saving-them.csDiagram, ImageSaveOptions, PagesCompare shape appearance before and after theme application by rendering thumbnails and saving them
compare-the-fill-colors-of-two-shapes-and-log-a-warning-if-they-differ.csDiagram, Pages, ShapesCompare the fill colors of two shapes and log a warning if they differ
compare-visual-output-of-shapes-with-keeptextflat-true-in-pdf-and-svg-formats.csDiagram, Pages, PdfSaveOptionsCompare visual output of shapes with keeptextflat true in pdf and svg formats
configure-the-rotation-type-to-perspective-and-assign-a-45-degree-perspective-angle.csDiagram, Pages, SaveConfigure the rotation type to perspective and assign a 45 degree perspective angle
connect-a-star-shape-to-a-rectangle-using-source-index-1-and-target-index-2.csAddMaster, AddShape, DiagramConnect a star shape to a rectangle using source index 1 and target index 2
connect-sub-shapes-from-three-different-groups-using-separate-connectors-and-list-resulting-connection-ids.csAddShape, ConnectShapesViaConnector, DiagramConnect sub shapes from three different groups using separate connectors and list resulting connection ids
connect-two-sub-shapes-from-different-group-shapes-using-page-connectshapesviaconnector-method.csAddShape, ConnectShapesViaConnector, DiagramConnect two sub shapes from different group shapes using page connectshapesviaconnector method
convert-a-shape-to-html-format-preserving-visual-styling-accurately.csDiagram, HTMLSaveOptions, PagesConvert a shape to html format preserving visual styling accurately
convert-a-shape-to-pdf-format-using-appropriate-save-options.csDiagram, Pages, PdfSaveOptionsConvert a shape to pdf format using appropriate save options
convert-a-shape-to-svg-and-ensure-its-line-dash-pattern-is-preserved.csDiagram, Pages, SVGSaveOptionsConvert a shape to svg and ensure its line dash pattern is preserved
convert-a-shape-to-svg-and-verify-that-text-elements-retain-original-fonts.csDiagram, Pages, SVGSaveOptionsConvert a shape to svg and verify that text elements retain original fonts
convert-a-shape-to-svg-format-using-default-export-settings.csDiagram, Pages, SVGSaveOptionsConvert a shape to svg format using default export settings
convert-a-shape-to-swf-format-and-handle-potential-conversion-errors.csDiagram, ImageSaveOptions, PagesConvert a shape to swf format and handle potential conversion errors
convert-multiple-shapes-to-svg-in-a-loop-appending-each-result-to-a-single-html-document.csDiagram, Pages, SVGSaveOptionsConvert multiple shapes to svg in a loop appending each result to a single html document
copy-a-shape-s-custom-data-cells-to-another-shape-and-verify-data-integrity-after-copying.csDiagram, Pages, SaveCopy a shape s custom data cells to another shape and verify data integrity after copying
copy-an-entire-page-s-pagesheet-to-a-newly-created-page-while-preserving-background-settings.csDiagram, Page, PagesCopy an entire page s pagesheet to a newly created page while preserving background settings
copy-an-existing-hexagon-shape-to-a-new-location-on-the-same-page-using-offset-coordinates.csAddShape, Diagram, PagesCopy an existing hexagon shape to a new location on the same page using offset coordinates
copy-shapes-from-one-diagram-to-another-while-offsetting-ids-to-avoid-conflicts.csDiagram, PageCopy shapes from one diagram to another while offsetting ids to avoid conflicts
copy-the-shape-together-with-its-paragraphs-to-another-page-named-page-3-preserving-formatting.csDiagram, Page, PagesCopy the shape together with its paragraphs to another page named page 3 preserving formatting
count-the-number-of-shapes-on-each-page-of-a-diagram-and-generate-a-summary-report.csDiagram, Pages, ShapesCount the number of shapes on each page of a diagram and generate a summary report
create-a-batch-job-that-disables-gluing-on-all-shapes-exceeding-a-defined-size-threshold.csDiagram, Pages, SaveCreate a batch job that disables gluing on all shapes exceeding a defined size threshold
create-a-batch-script-that-processes-all-diagrams-in-a-zip-archive-adjusting-specified-shape-sizes.csDiagram, Pages, SaveCreate a batch script that processes all diagrams in a zip archive adjusting specified shape sizes
create-a-connector-shape-between-two-existing-shapes-automatically-selecting-the-nearest-connection-points.csAddShape, ConnectShapesViaConnector, DiagramCreate a connector shape between two existing shapes automatically selecting the nearest connection points
create-a-diagnostic-tool-that-flags-connectors-lacking-explicit-line-jump-style-definitions.csDiagram, Layout, PagesCreate a diagnostic tool that flags connectors lacking explicit line jump style definitions
create-a-group-containing-all-connector-shapes-and-confirm-connections-after-saving.csDiagram, Pages, SaveCreate a group containing all connector shapes and confirm connections after saving
create-a-linq-query-to-select-shapes-whose-names-start-with-connector-and-adjust-their-widths.csDiagram, Pages, SaveCreate a linq query to select shapes whose names start with connector and adjust their widths
create-a-macro-that-automatically-adds-a-timestamp-paragraph-to-every-new-shape-on-a-page.csDiagram, Save, diagramCreate a macro that automatically adds a timestamp paragraph to every new shape on a page
create-a-macro-that-iterates-over-selected-shapes-and-flips-their-fill-inheritance-status.csDiagram, Pages, SaveCreate a macro that iterates over selected shapes and flips their fill inheritance status
create-a-method-that-accepts-a-shape-id-and-returns-its-absolute-pinx-y-as-a-tuple.csPages, Shapes, diagramCreate a method that accepts a shape id and returns its absolute pinx y as a tuple
create-a-new-rectangle-shape-on-a-page-and-assign-the-flowchart-theme-during-creation.csAddShape, Diagram, PageCreate a new rectangle shape on a page and assign the flowchart theme during creation
create-a-new-shape-on-the-page-at-coordinates-2-2-and-assign-a-unique-identifier.csAddShape, Diagram, PagesCreate a new shape on the page at coordinates 2 2 and assign a unique identifier
create-a-report-listing-shape-ids-names-and-their-fill-and-line-inheritance-statuses.csDiagram, Pages, ShapesCreate a report listing shape ids names and their fill and line inheritance statuses
create-a-reusable-method-that-accepts-a-shape-and-theme-name-applying-the-theme-and-returning-success-status.csPresetTheme, PresetThemeVariant, shapeCreate a reusable method that accepts a shape and theme name applying the theme and returning success status
create-a-unit-test-that-ensures-adding-a-connection-point-increases-the-connections-collection-count-by-one.csAddShape, Connection, DiagramCreate a unit test that ensures adding a connection point increases the connections collection count by one
create-a-unit-test-that-verifies-fill-inheritance-is-correctly-reported-after-saving-and-reloading-a-diagram.csDiagram, Pages, SaveCreate a unit test that verifies fill inheritance is correctly reported after saving and reloading a diagram
create-a-unit-test-that-verifies-line-jump-style-changes-persist-after-diagram-serialization.csAddShape, Diagram, PageCreate a unit test that verifies line jump style changes persist after diagram serialization
create-a-utility-method-that-returns-a-dictionary-mapping-shape-ids-to-their-absolute-pin-coordinates.csPages, Shapes, diagramCreate a utility method that returns a dictionary mapping shape ids to their absolute pin coordinates
create-an-svgsaveoptions-object-with-a-transparent-background-and-pass-it-to-tosvg-for-customized-output.csDiagram, Pages, SVGSaveOptionsCreate an svgsaveoptions object with a transparent background and pass it to tosvg for customized output
create-five-distinct-shapes-on-a-new-page-and-arrange-them-in-a-circular-layout.csDiagram, Page, PagesCreate five distinct shapes on a new page and arrange them in a circular layout
create-unit-tests-for-setheight-and-setwidth-methods-ensuring-dimensions-are-set-accurately-within-tolerance.csDiagram, Page, PagesCreate unit tests for setheight and setwidth methods ensuring dimensions are set accurately within tolerance
deserialize-json-configuration-to-apply-predefined-inheritance-flags-to-shapes-during-diagram-loading.csDiagram, Pages, SaveDeserialize json configuration to apply predefined inheritance flags to shapes during diagram loading
deserialize-json-containing-paragraph-data-and-populate-a-shape-s-paragraphs-accordingly.csDiagram, Pages, SaveDeserialize json containing paragraph data and populate a shape s paragraphs accordingly
detach-all-connectors-from-a-shape-after-disabling-its-gluing-property-to-prepare-for-deletion.csDiagram, Pages, SaveDetach all connectors from a shape after disabling its gluing property to prepare for deletion
detect-and-log-shapes-that-have-inconsistent-inheritance-flags-between-fill-and-line-properties.csDiagram, Pages, ShapesDetect and log shapes that have inconsistent inheritance flags between fill and line properties
detect-and-remove-empty-paragraphs-from-all-shapes-on-a-given-page-to-clean-up-the-diagram.csDiagram, Pages, SaveDetect and remove empty paragraphs from all shapes on a given page to clean up the diagram
detect-and-skip-shapes-that-already-have-the-target-theme-applied-to-avoid-redundant-processing.csDiagram, Pages, PresetThemeDetect and skip shapes that already have the target theme applied to avoid redundant processing
detect-shapes-that-are-not-connected-to-any-other-shape-and-flag-them-for-review.csDiagram, Pages, ShapesDetect shapes that are not connected to any other shape and flag them for review
detect-shapes-that-are-not-part-of-any-group-and-export-the-list-to-json.csDiagram, Pages, ShapesDetect shapes that are not part of any group and export the list to json
determine-the-parent-shape-of-a-sub-shape-and-display-its-id-and-name-in-the-console.csDiagram, Pages, ShapesDetermine the parent shape of a sub shape and display its id and name in the console
determine-whether-a-shape-inherits-fill-formatting-from-its-master-using-the-inherit-flag.csDiagram, Pages, ShapesDetermine whether a shape inherits fill formatting from its master using the inherit flag
develop-a-console-application-that-accepts-diagram-path-arguments-modifies-shape-dimensions-and-outputs-status-messages.csDiagram, Pages, SaveDevelop a console application that accepts diagram path arguments modifies shape dimensions and outputs status messages
develop-a-console-utility-that-lists-shapes-with-gluing-enabled-and-their-attached-connectors.csDiagram, Pages, ShapesDevelop a console utility that lists shapes with gluing enabled and their attached connectors
disable-gluing-on-a-shape-to-prevent-further-connector-attachments-during-editing.csDiagram, Pages, SaveDisable gluing on a shape to prevent further connector attachments during editing
disable-line-inheritance-for-a-specific-shape-and-assign-a-new-line-weight-using-the-line-weight-property.csDiagram, Pages, SaveDisable line inheritance for a specific shape and assign a new line weight using the line weight property
dispose-of-the-diagram-object-after-saving-to-release-unmanaged-resources-and-avoid-memory-leaks.csDiagram, Save, diagramDispose of the diagram object after saving to release unmanaged resources and avoid memory leaks
duplicate-a-shape-assign-a-new-unique-id-and-place-the-copy-on-another-page.csDiagram, Page, PagesDuplicate a shape assign a new unique id and place the copy on another page
duplicate-a-shape-several-times-with-incremental-position-offsets-and-ensure-no-id-collisions-occur.csDiagram, Page, PagesDuplicate a shape several times with incremental position offsets and ensure no id collisions occur
duplicate-an-existing-shape-by-adding-a-new-shape-with-the-same-master-id-and-adjusting-its-position.csDiagram, Pages, SaveDuplicate an existing shape by adding a new shape with the same master id and adjusting its position
enable-fill-inheritance-for-multiple-shapes-in-a-diagram-by-setting-their-fill-inherit-properties-to-true.csDiagram, Pages, SaveEnable fill inheritance for multiple shapes in a diagram by setting their fill inherit properties to true
enable-glow-effect-on-connector-shapes-after-setting-their-connectors-type-to-a-dashed-style.csDiagram, Pages, SaveEnable glow effect on connector shapes after setting their connectors type to a dashed style
enable-gluing-on-a-specific-shape-to-allow-connectors-to-attach-automatically.csDiagram, Pages, SaveEnable gluing on a specific shape to allow connectors to attach automatically
enable-the-reroute-option-for-a-dynamic-connector-by-setting-layout-confixedcode-to-appropriate-value.csDiagram, Layout, PagesEnable the reroute option for a dynamic connector by setting layout confixedcode to appropriate value
ensure-that-disabling-line-inheritance-does-not-affect-existing-line-color-attributes-on-the-shape.csDiagram, Pages, SaveEnsure that disabling line inheritance does not affect existing line color attributes on the shape
enumerate-all-shapes-that-are-currently-glued-to-a-given-shape-and-list-their-ids.csDiagram, Pages, SaveEnumerate all shapes that are currently glued to a given shape and list their ids
expand-each-group-shape-to-expose-its-sub-shapes-before-applying-individual-rotations.csDiagram, Pages, SaveExpand each group shape to expose its sub shapes before applying individual rotations
export-a-diagram-s-shape-hierarchy-including-theme-information-to-an-xml-representation.csDiagram, Pages, ShapesExport a diagram s shape hierarchy including theme information to an xml representation
export-a-selected-shape-to-html-format-preserving-its-geometry-and-style-attributes.csDiagram, HTMLSaveOptions, PagesExport a selected shape to html format preserving its geometry and style attributes
export-a-shape-s-line-and-fill-definitions-to-a-json-file-for-reuse.csDiagram, Pages, ShapesExport a shape s line and fill definitions to a json file for reuse
export-a-shape-to-html-and-embed-the-resulting-swf-file-with-fallback-image-support.csDiagram, Save, diagramExport a shape to html and embed the resulting swf file with fallback image support
export-a-shape-to-html-and-replace-its-inline-css-with-external-stylesheet-references.csDiagram, HTMLSaveOptions, PagesExport a shape to html and replace its inline css with external stylesheet references
export-a-specific-shape-to-pdf-format-with-high-resolution.csDiagram, Pages, ShapesExport a specific shape to pdf format with high resolution
export-all-shapes-using-a-specific-master-to-html-maintaining-each-shape-s-individual-formatting.csDiagram, HTMLSaveOptions, PagesExport all shapes using a specific master to html maintaining each shape s individual formatting
export-each-shape-on-a-specific-page-to-separate-html-files-with-embedded-css.csDiagram, HTMLSaveOptions, PagesExport each shape on a specific page to separate html files with embedded css
export-each-shape-on-a-specific-page-to-separate-pdf-files-named-by-shape-id.csDiagram, Pages, ShapesExport each shape on a specific page to separate pdf files named by shape id
export-multiple-selected-shapes-to-separate-svg-files-named-by-their-shape-ids.csDiagram, Pages, SVGSaveOptionsExport multiple selected shapes to separate svg files named by their shape ids
export-paragraph-texts-from-all-shapes-on-each-page-into-a-csv-file-for-external-analysis.csDiagram, Pages, ShapesExport paragraph texts from all shapes on each page into a csv file for external analysis
export-shape-properties-such-as-id-name-and-theme-color-to-a-json-file-for-external-analysis.csDiagram, Pages, ShapesExport shape properties such as id name and theme color to a json file for external analysis
export-the-diagram-to-svg-format-after-updating-fill-inheritance-to-reflect-custom-colors.csDiagram, Pages, SVGSaveOptionsExport the diagram to svg format after updating fill inheritance to reflect custom colors
export-the-selected-shape-as-a-high-resolution-png-image-file.csDiagram, ImageSaveOptions, PagesExport the selected shape as a high resolution png image file
export-the-svg-string-of-a-shape-to-a-svg-file-on-disk-using-file-writealltext.csDiagram, Pages, SVGSaveOptionsExport the svg string of a shape to a svg file on disk using file writealltext
extract-paragraph-font-names-from-all-shapes-and-store-them-in-a-dictionary-keyed-by-shape-id.csDiagram, Pages, ShapesExtract paragraph font names from all shapes and store them in a dictionary keyed by shape id
extract-shape-ids-matching-the-pattern-node-and-write-them-to-a-csv-file.csDiagram, Pages, SaveExtract shape ids matching the pattern node and write them to a csv file
extract-the-line-color-of-a-shape-and-output-its-rgb-components.csDiagram, Pages, ShapesExtract the line color of a shape and output its rgb components
extract-the-list-of-child-shape-ids-from-a-parent-shape-for-further-use.csDiagram, Pages, ShapesExtract the list of child shape ids from a parent shape for further use
filter-shapes-by-a-custom-property-value-and-output-the-ids-of-matching-shapes.csDiagram, Pages, ShapesFilter shapes by a custom property value and output the ids of matching shapes
filter-shapes-by-master-name-and-apply-a-custom-theme-only-to-those-matching-the-filter.csDiagram, Pages, PresetThemeFilter shapes by master name and apply a custom theme only to those matching the filter
filter-shapes-by-master-name-process-and-collect-their-ids-for-analysis.csDiagram, Pages, ShapesFilter shapes by master name process and collect their ids for analysis
filter-shapes-on-a-page-by-checking-for-paragraphs-containing-the-word-important-and-highlight-them.csDiagram, Pages, SaveFilter shapes on a page by checking for paragraphs containing the word important and highlight them
filter-shapes-on-a-page-by-ids-greater-than-100-and-rotate-each-filtered-shape-by-five-degrees.csDiagram, Pages, SaveFilter shapes on a page by ids greater than 100 and rotate each filtered shape by five degrees
find-a-shape-using-its-name-property-ignoring-case-sensitivity-and-assign-it-to-a-variable.csDiagram, Pages, ShapesFind a shape using its name property ignoring case sensitivity and assign it to a variable
generate-a-pdf-report-containing-rendered-images-of-each-shape-with-metadata.csDiagram, ImageSaveOptions, PagesGenerate a pdf report containing rendered images of each shape with metadata
generate-a-pdf-report-summarizing-rotation-settings-for-all-shapes-with-fixed-rotationtype.csDiagram, Pages, ShapesGenerate a pdf report summarizing rotation settings for all shapes with fixed rotationtype
generate-a-report-listing-each-connector-id-together-with-its-associated-line-jump-style.csDiagram, Layout, PagesGenerate a report listing each connector id together with its associated line jump style
generate-a-report-summarizing-each-shape-s-id-name-width-height-and-absolute-pin-coordinates.csDiagram, Pages, SaveGenerate a report summarizing each shape s id name width height and absolute pin coordinates
generate-a-report-summarizing-total-shapes-connectors-and-pages-within-the-loaded-diagram.csDiagram, Pages, ShapesGenerate a report summarizing total shapes connectors and pages within the loaded diagram
generate-a-summary-csv-listing-each-shape-s-id-final-width-final-height-and-number-of-connection-points.csDiagram, Pages, ShapesGenerate a summary csv listing each shape s id final width final height and number of connection points
generate-a-summary-report-listing-each-shape-name-and-the-number-of-paragraphs-it-contains.csDiagram, Pages, ShapesGenerate a summary report listing each shape name and the number of paragraphs it contains
generate-a-visual-diagram-highlighting-shapes-with-disabled-line-inheritance-using-custom-line-colors.csDiagram, Pages, SaveGenerate a visual diagram highlighting shapes with disabled line inheritance using custom line colors
generate-a-visual-preview-of-connector-line-jumps-before-saving-changes-to-verify-appearance.csDiagram, ImageSaveOptions, LayoutGenerate a visual preview of connector line jumps before saving changes to verify appearance
generate-svg-markup-for-a-single-shape-using-the-shape-tosvg-method-and-store-the-result.csDiagram, Pages, SVGSaveOptionsGenerate svg markup for a single shape using the shape tosvg method and store the result
group-a-set-of-selected-shapes-into-a-single-group-on-a-given-page.csDiagram, Pages, SaveGroup a set of selected shapes into a single group on a given page
handle-exceptions-during-svg-conversion-by-catching-diagramexception-and-logging-error-details.csDiagram, SVGSaveOptions, SaveHandle exceptions during svg conversion by catching diagramexception and logging error details
implement-a-batch-routine-that-updates-line-weight-for-all-page-shapes-based-on-current-width.csDiagram, Pages, SaveImplement a batch routine that updates line weight for all page shapes based on current width
implement-a-cleanup-routine-that-removes-duplicate-connection-points-from-shapes-after-batch-modifications.csDiagram, Pages, SaveImplement a cleanup routine that removes duplicate connection points from shapes after batch modifications
implement-a-command-line-tool-that-toggles-fill-inheritance-for-a-shape-identified-by-name.csDiagram, Pages, SaveImplement a command line tool that toggles fill inheritance for a shape identified by name
implement-a-feature-to-copy-connection-points-from-a-template-shape-to-multiple-target-shapes.csConnection, Diagram, PagesImplement a feature to copy connection points from a template shape to multiple target shapes
implement-a-function-that-rounds-calculated-pinx-y-values-to-two-decimal-places-before-applying-them.csDiagram, Pages, SaveImplement a function that rounds calculated pinx y values to two decimal places before applying them
implement-a-logging-wrapper-around-setwidth-and-setheight-to-record-old-and-new-dimension-values.csDiagram, Pages, SaveImplement a logging wrapper around setwidth and setheight to record old and new dimension values
implement-a-retry-mechanism-when-loading-a-diagram-fails-due-to-file-lock-then-set-paragraph-text.csDiagram, Pages, SaveImplement a retry mechanism when loading a diagram fails due to file lock then set paragraph text
implement-a-validation-routine-that-ensures-no-connector-has-an-undefined-line-jump-style.csDiagram, Layout, PagesImplement a validation routine that ensures no connector has an undefined line jump style
implement-error-handling-for-attempts-to-attach-connectors-to-shapes-with-gluing-disabled.csAddShape, ConnectShapesViaConnector, DiagramImplement error handling for attempts to attach connectors to shapes with gluing disabled
implement-error-handling-for-missing-fill-inherit-property-when-processing-shapes-from-older-visio-versions.csDiagram, Pages, SaveImplement error handling for missing fill inherit property when processing shapes from older visio versions
implement-error-handling-to-catch-exceptions-when-a-shape-id-is-not-found-during-retrieval.csDiagram, Pages, SaveImplement error handling to catch exceptions when a shape id is not found during retrieval
implement-try-catch-blocks-around-theme-application-to-handle-exceptions-for-unsupported-shape-types.csDiagram, Pages, PresetThemeImplement try catch blocks around theme application to handle exceptions for unsupported shape types
implement-unit-tests-verifying-that-setconnectorstype-changes-connector-appearance-as-expected-in-various-scenarios.csAddShape, ConnectShapesViaConnector, DiagramImplement unit tests verifying that setconnectorstype changes connector appearance as expected in various scenarios
initialize-a-diagram-object-using-a-memory-stream-containing-vsdx-data-and-confirm-parsing-succeeds.csDiagram, Pages, diagramInitialize a diagram object using a memory stream containing vsdx data and confirm parsing succeeds
iterate-over-all-pages-add-a-header-shape-containing-the-current-date-and-position-it-consistently.csDiagram, Page, PagesIterate over all pages add a header shape containing the current date and position it consistently
iterate-through-a-shape-s-connections-collection-and-verify-that-newly-added-points-exist-and-are-correctly-typed.csConnection, Diagram, PagesIterate through a shape s connections collection and verify that newly added points exist and are correctly typed
iterate-through-all-connectors-and-change-any-straight-jump-style-to-square-automatically.csDiagram, Layout, PagesIterate through all connectors and change any straight jump style to square automatically
iterate-through-all-shapes-and-count-how-many-have-a-red-line-attribute.csDiagram, Pages, ShapesIterate through all shapes and count how many have a red line attribute
iterate-through-all-shapes-in-a-visio-page-and-log-each-shape-s-inheritance-flags-for-fill-and-line.csDiagram, Pages, ShapesIterate through all shapes in a visio page and log each shape s inheritance flags for fill and line
iterate-through-all-shapes-on-a-page-and-collect-their-paragraph-texts-into-a-list-for-reporting.csDiagram, Pages, ShapesIterate through all shapes on a page and collect their paragraph texts into a list for reporting
iterate-through-each-page-find-shapes-with-a-specific-master-id-and-rotate-them-by-a-uniform-angle.csDiagram, Pages, SaveIterate through each page find shapes with a specific master id and rotate them by a uniform angle
iterate-through-the-connectedshapes-collection-and-log-each-connected-shape-s-id-and-type.csDiagram, Pages, ShapesIterate through the connectedshapes collection and log each connected shape s id and type
list-all-connector-shapes-and-output-their-source-and-target-shape-ids-for-each-connection.csDiagram, Pages, ShapesList all connector shapes and output their source and target shape ids for each connection
list-all-shapes-that-have-no-connections-and-output-their-ids-for-further-analysis.csDiagram, Pages, ShapesList all shapes that have no connections and output their ids for further analysis
load-a-diagram-enable-gluing-on-a-group-of-shapes-and-attach-a-shared-connector.csAddShape, ConnectShapesViaConnector, DiagramLoad a diagram enable gluing on a group of shapes and attach a shared connector
load-a-diagram-from-a-memory-stream-and-apply-themes-without-writing-to-disk-first.csDiagram, Pages, PresetThemeLoad a diagram from a memory stream and apply themes without writing to disk first
load-a-diagram-from-a-memory-stream-modify-shape-size-and-write-the-result-to-a-byte-array.csDiagram, Pages, SaveLoad a diagram from a memory stream modify shape size and write the result to a byte array
load-a-diagram-locate-a-group-shape-and-rotate-each-of-its-sub-shapes-individually-by-twenty-degrees.csDiagram, Pages, SaveLoad a diagram locate a group shape and rotate each of its sub shapes individually by twenty degrees
load-a-visio-diagram-apply-a-blur-effect-to-background-shapes-and-export-the-composition-as-a-high-quality-jpeg.csDiagram, ImageSaveOptions, PagesLoad a visio diagram apply a blur effect to background shapes and export the composition as a high quality jpeg
load-a-visio-diagram-apply-a-custom-dpi-of-600-when-exporting-shapes-to-jpeg-and-save-images.csDiagram, ImageSaveOptions, PagesLoad a visio diagram apply a custom dpi of 600 when exporting shapes to jpeg and save images
load-a-visio-diagram-apply-a-custom-font-to-all-text-shapes-and-export-to-pdf-with-embedded-fonts.csDiagram, Pages, PdfSaveOptionsLoad a visio diagram apply a custom font to all text shapes and export to pdf with embedded fonts
load-a-visio-diagram-apply-a-custom-watermark-image-to-each-page-and-save-the-watermarked-pdf.csAddShape, Diagram, PagesLoad a visio diagram apply a custom watermark image to each page and save the watermarked pdf
load-a-visio-diagram-apply-a-drop-shadow-to-all-shapes-with-a-specific-tag-and-save-the-modified-diagram.csDiagram, Pages, SaveLoad a visio diagram apply a drop shadow to all shapes with a specific tag and save the modified diagram
load-a-visio-diagram-batch-add-a-drop-shadow-to-all-picture-shapes-and-export-each-page-as-pdf.csDiagram, Pages, PdfSaveOptionsLoad a visio diagram batch add a drop shadow to all picture shapes and export each page as pdf
load-a-visio-diagram-export-shapes-as-pngs-and-apply-lossless-compression-to-reduce-file-size.csDiagram, ImageSaveOptions, PagesLoad a visio diagram export shapes as pngs and apply lossless compression to reduce file size
load-a-visio-diagram-extract-all-shape-urls-validate-them-against-a-whitelist-and-generate-a-compliance-report.csDiagram, Pages, ShapesLoad a visio diagram extract all shape urls validate them against a whitelist and generate a compliance report
load-a-visio-diagram-extract-each-shape-s-geometry-as-a-dxf-file-and-archive-the-dxf-files.csDiagram, Pages, ShapesLoad a visio diagram extract each shape s geometry as a dxf file and archive the dxf files
load-a-visio-diagram-extract-shape-geometry-data-and-serialize-the-coordinates-into-an-xml-document.csDiagram, Pages, ShapesLoad a visio diagram extract shape geometry data and serialize the coordinates into an xml document
load-a-visio-diagram-extract-text-from-each-shape-and-write-shape-ids-with-text-to-a-csv.csDiagram, Pages, ShapesLoad a visio diagram extract text from each shape and write shape ids with text to a csv
load-a-visio-diagram-file-and-select-a-shape-by-its-id.csDiagram, Pages, ShapesLoad a visio diagram file and select a shape by its id
load-a-visio-diagram-file-into-a-diagram-object-using-the-aspose-diagram-api.csDiagram, Pages, diagramLoad a visio diagram file into a diagram object using the aspose diagram api
load-a-visio-diagram-from-a-file-path-and-verify-successful-initialization.csDiagram, Pages, diagramLoad a visio diagram from a file path and verify successful initialization
load-a-visio-diagram-from-a-file-stream-and-access-its-shape-collection.csDiagram, Pages, ShapesLoad a visio diagram from a file stream and access its shape collection
load-a-visio-diagram-from-a-vsdx-file-using-the-diagram-class.csDiagram, Pages, diagramLoad a visio diagram from a vsdx file using the diagram class
load-a-visio-diagram-generate-a-csv-listing-each-shape-s-id-type-and-area-in-square-millimeters.csDiagram, Pages, ShapesLoad a visio diagram generate a csv listing each shape s id type and area in square millimeters
load-a-visio-diagram-generate-a-pdf-with-embedded-fonts-and-lossless-image-compression-for-optimal-quality.csDiagram, PdfSaveOptions, SaveLoad a visio diagram generate a pdf with embedded fonts and lossless image compression for optimal quality
load-a-visio-diagram-generate-a-pdf-with-vector-shapes-and-raster-images-compressed-using-zip-algorithm.csDiagram, PdfSaveOptions, SaveLoad a visio diagram generate a pdf with vector shapes and raster images compressed using zip algorithm
load-a-visio-diagram-generate-a-report-of-shapes-that-exceed-a-specified-area-threshold-and-save-as-csv.csDiagram, Pages, ShapesLoad a visio diagram generate a report of shapes that exceed a specified area threshold and save as csv
load-a-visio-diagram-generate-a-vector-pdf-page-for-each-shape-and-combine-pages-into-a-single-pdf.csDiagram, Pages, ShapesLoad a visio diagram generate a vector pdf page for each shape and combine pages into a single pdf
load-a-visio-diagram-programmatically-set-shape-protection-to-prevent-deletion-and-save-the-protected-file.csDiagram, Pages, SaveLoad a visio diagram programmatically set shape protection to prevent deletion and save the protected file
load-a-visio-diagram-replace-all-gradient-fills-with-solid-colors-defined-in-a-configuration-file-then-save.csDiagram, Pages, SaveLoad a visio diagram replace all gradient fills with solid colors defined in a configuration file then save
load-a-visio-diagram-replace-all-instances-of-a-deprecated-shape-master-with-an-updated-master-then-save.csAddShape, Diagram, PagesLoad a visio diagram replace all instances of a deprecated shape master with an updated master then save
load-a-visio-diagram-replace-all-placeholder-shapes-with-actual-company-logos-and-export-to-high-resolution-png.csAddShape, Diagram, ImageSaveOptionsLoad a visio diagram replace all placeholder shapes with actual company logos and export to high resolution png
load-a-visio-file-apply-a-compression-setting-to-reduce-pdf-output-size-and-export-the-diagram-to-pdf.csDiagram, PdfSaveOptions, SaveLoad a visio file apply a compression setting to reduce pdf output size and export the diagram to pdf
load-a-visio-file-apply-a-custom-color-gradient-to-all-shapes-based-on-their-layer-then-save.csDiagram, Pages, SaveLoad a visio file apply a custom color gradient to all shapes based on their layer then save
load-a-visio-file-apply-a-uniform-background-image-to-all-pages-and-export-the-updated-diagram-to-pdf.csAddShape, Diagram, PagesLoad a visio file apply a uniform background image to all pages and export the updated diagram to pdf
load-a-visio-file-apply-a-uniform-line-color-to-all-connector-shapes-and-save-the-diagram-as-pdf.csDiagram, Pages, PdfSaveOptionsLoad a visio file apply a uniform line color to all connector shapes and save the diagram as pdf
load-a-visio-file-apply-anti-aliasing-settings-to-shape-rendering-and-export-each-shape-as-a-high-quality-jpeg.csDiagram, ImageSaveOptions, PagesLoad a visio file apply anti aliasing settings to shape rendering and export each shape as a high quality jpeg
load-a-visio-file-batch-add-data-fields-to-shapes-based-on-a-mapping-csv-and-export-updated-diagram.csDiagram, Pages, SaveLoad a visio file batch add data fields to shapes based on a mapping csv and export updated diagram
load-a-visio-file-batch-convert-all-shapes-to-svg-format-and-store-them-in-a-hierarchical-folder-structure.csDiagram, Pages, SVGSaveOptionsLoad a visio file batch convert all shapes to svg format and store them in a hierarchical folder structure
load-a-visio-file-convert-all-shapes-to-vector-emf-format-and-combine-them-into-a-single-multi-page-document.csDiagram, ImageSaveOptions, PageLoad a visio file convert all shapes to vector emf format and combine them into a single multi page document
load-a-visio-file-convert-each-shape-to-a-vector-pdf-page-and-preserve-original-layer-ordering.csDiagramLoad a visio file convert each shape to a vector pdf page and preserve original layer ordering
load-a-visio-file-detect-shapes-with-missing-fill-colors-assign-a-default-color-and-save-the-corrected-diagram.csDiagram, Pages, SaveLoad a visio file detect shapes with missing fill colors assign a default color and save the corrected diagram
load-a-visio-file-extract-a-shape-by-id-and-save-it-as-a-png-with-300-dpi.csDiagram, ImageSaveOptions, PagesLoad a visio file extract a shape by id and save it as a png with 300 dpi
load-a-visio-file-extract-shape-custom-properties-map-them-to-a-database-schema-and-insert-records.csDiagram, Pages, SaveLoad a visio file extract shape custom properties map them to a database schema and insert records
load-a-visio-file-generate-a-pdf-index-page-linking-to-each-shape-s-detailed-page-and-prepend-to-document.csDiagram, Page, PagesLoad a visio file generate a pdf index page linking to each shape s detailed page and prepend to document
load-a-visio-file-generate-a-printable-legend-that-maps-shape-colors-to-their-meanings-and-prepend-to-pdf.csDiagram, Page, PagesLoad a visio file generate a printable legend that maps shape colors to their meanings and prepend to pdf
load-a-visio-file-generate-a-vector-eps-file-for-each-shape-and-zip-the-eps-collection.csDiagram, ImageSaveOptions, PagesLoad a visio file generate a vector eps file for each shape and zip the eps collection
load-a-visio-file-identify-shapes-exceeding-a-size-threshold-and-flag-them-by-adding-a-red-border.csDiagram, Pages, SaveLoad a visio file identify shapes exceeding a size threshold and flag them by adding a red border
load-a-visio-file-identify-shapes-with-no-assigned-master-and-assign-a-default-master-programmatically.csAddMaster, Diagram, MastersLoad a visio file identify shapes with no assigned master and assign a default master programmatically
load-a-visio-file-into-a-diagram-object-and-verify-successful-initialization.csDiagram, Pages, diagramLoad a visio file into a diagram object and verify successful initialization
load-a-visio-file-merge-two-separate-diagrams-into-a-single-file-preserving-all-shape-layers-and-connections.csDiagramLoad a visio file merge two separate diagrams into a single file preserving all shape layers and connections
load-a-visio-file-programmatically-change-connector-routing-style-to-orthogonal-and-export-the-updated-diagram-to-svg.csDiagram, Layout, PagesLoad a visio file programmatically change connector routing style to orthogonal and export the updated diagram to svg
load-a-visio-file-replace-shape-fill-colors-based-on-external-csv-data-then-save-the-modified-diagram.csDiagram, Pages, SaveLoad a visio file replace shape fill colors based on external csv data then save the modified diagram
load-a-visio-vsdx-file-into-a-diagram-object-and-verify-successful-initialization.csDiagram, Pages, diagramLoad a visio vsdx file into a diagram object and verify successful initialization
load-a-vsd-file-from-a-path-and-list-each-shape-s-name-and-master-stencil.csDiagram, Pages, ShapesLoad a vsd file from a path and list each shape s name and master stencil
load-a-vsdx-diagram-from-disk-into-a-diagram-instance-and-verify-successful-loading.csDiagram, Pages, diagramLoad a vsdx diagram from disk into a diagram instance and verify successful loading
load-a-vsdx-file-from-a-path-and-enumerate-all-shape-ids-in-the-diagram.csDiagram, Pages, ShapesLoad a vsdx file from a path and enumerate all shape ids in the diagram
load-a-vsdx-file-locate-a-sub-shape-by-id-and-calculate-its-absolute-pinx-coordinate.csDiagram, Pages, ShapesLoad a vsdx file locate a sub shape by id and calculate its absolute pinx coordinate
load-multiple-visio-files-from-a-directory-apply-a-common-theme-to-new-shapes-and-save-them.csDiagram, Pages, PresetThemeLoad multiple visio files from a directory apply a common theme to new shapes and save them
locate-a-connector-shape-within-the-diagram-by-its-unique-identifier-or-name.csDiagram, Pages, ShapesLocate a connector shape within the diagram by its unique identifier or name
locate-a-shape-by-its-unique-identifier-and-retrieve-its-fill-inherit-property-value.csDiagram, Pages, diagramLocate a shape by its unique identifier and retrieve its fill inherit property value
locate-a-shape-on-the-page-using-shapecollection-getshape-with-the-shape-id.csDiagram, Pages, ShapesLocate a shape on the page using shapecollection getshape with the shape id
lock-paragraph-editing-for-specific-shapes-while-allowing-other-modifications-and-verify-settings.csDiagram, Pages, SaveLock paragraph editing for specific shapes while allowing other modifications and verify settings
log-each-theme-application-event-with-timestamp-and-shape-identifier-to-a-text-log-file.csDiagram, Pages, PresetThemeLog each theme application event with timestamp and shape identifier to a text log file
log-the-total-number-of-gluing-relationships-before-and-after-diagram-modifications-for-audit-purposes.csDiagram, Pages, SaveLog the total number of gluing relationships before and after diagram modifications for audit purposes
loop-through-all-shapes-on-a-page-and-apply-the-office-theme-to-each-shape-sequentially.csDiagram, Pages, PresetThemeLoop through all shapes on a page and apply the office theme to each shape sequentially
map-external-csv-data-to-shape-ids-and-apply-themes-based-on-corresponding-data-values.csDiagram, Pages, PresetThemeMap external csv data to shape ids and apply themes based on corresponding data values
measure-the-time-taken-to-convert-a-hundred-shapes-to-svg-and-log-the-duration-for-performance-analysis.csDiagram, Pages, SVGSaveOptionsMeasure the time taken to convert a hundred shapes to svg and log the duration for performance analysis
merge-paragraphs-from-two-shapes-into-a-single-shape-while-preserving-individual-formatting-attributes.csAddShape, Diagram, PagesMerge paragraphs from two shapes into a single shape while preserving individual formatting attributes
modify-a-shape-s-fill-inherit-flag-to-disable-inheritance-and-apply-a-custom-fill-color.csDiagram, Pages, SaveModify a shape s fill inherit flag to disable inheritance and apply a custom fill color
modify-a-shape-s-xform-coordinates-to-move-it-50-units-right-and-30-units-down.csDiagram, Pages, SaveModify a shape s xform coordinates to move it 50 units right and 30 units down
modify-the-first-paragraph-s-font-size-to-twelve-points-and-align-it-to-center.csDiagram, Pages, SaveModify the first paragraph s font size to twelve points and align it to center
modify-the-text-formatting-of-a-shape-including-font-size-and-color-following-theme-assignment.csDiagram, Pages, PresetThemeModify the text formatting of a shape including font size and color following theme assignment
move-all-shapes-on-a-page-named-details-by-adding-twenty-units-to-their-x-coordinate-values.csDiagram, Pages, SaveMove all shapes on a page named details by adding twenty units to their x coordinate values
move-the-shape-to-new-coordinates-by-updating-its-pinx-and-piny-cells.csDiagram, Pages, SaveMove the shape to new coordinates by updating its pinx and piny cells
obtain-a-shape-together-with-all-child-shapes-and-list-each-child-s-id-and-type.csDiagram, Pages, ShapesObtain a shape together with all child shapes and list each child s id and type
open-a-visio-diagram-apply-a-custom-dpi-setting-of-600-when-exporting-shapes-to-png-and-save.csDiagram, ImageSaveOptions, SaveOpen a visio diagram apply a custom dpi setting of 600 when exporting shapes to png and save
open-a-visio-diagram-apply-a-uniform-background-color-to-all-pages-and-export-the-diagram-as-a-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio diagram apply a uniform background color to all pages and export the diagram as a pdf
open-a-visio-diagram-batch-export-all-shape-thumbnails-at-100-100-pixels-and-save-them-with-descriptive-filenames.csDiagram, ImageSaveOptions, PagesOpen a visio diagram batch export all shape thumbnails at 100 100 pixels and save them with descriptive filenames
open-a-visio-diagram-batch-increase-the-font-size-of-all-title-shapes-by-two-points-then-save.csDiagram, Pages, SaveOpen a visio diagram batch increase the font size of all title shapes by two points then save
open-a-visio-diagram-batch-increase-the-line-thickness-of-all-shapes-by-0-2-pt-and-export-to-high-resolution-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio diagram batch increase the line thickness of all shapes by 0 2 pt and export to high resolution pdf
open-a-visio-diagram-batch-increase-the-opacity-of-all-shape-fills-to-80-and-export-to-png.csDiagram, ImageSaveOptions, PagesOpen a visio diagram batch increase the opacity of all shape fills to 80 and export to png
open-a-visio-diagram-batch-rename-shapes-using-a-prefix-derived-from-the-file-name-then-export-to-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio diagram batch rename shapes using a prefix derived from the file name then export to pdf
open-a-visio-diagram-detect-overlapping-shapes-and-automatically-reposition-them-to-eliminate-collisions.csDiagram, Pages, SaveOpen a visio diagram detect overlapping shapes and automatically reposition them to eliminate collisions
open-a-visio-diagram-detect-shapes-with-broken-data-links-and-generate-an-error-report-listing-them.csDiagram, Pages, ShapesOpen a visio diagram detect shapes with broken data links and generate an error report listing them
open-a-visio-diagram-detect-shapes-with-duplicate-names-and-rename-them-by-appending-incremental-numbers.csDiagram, Pages, SaveOpen a visio diagram detect shapes with duplicate names and rename them by appending incremental numbers
open-a-visio-diagram-detect-shapes-with-missing-custom-properties-and-add-default-properties-programmatically.csDiagram, Pages, PropOpen a visio diagram detect shapes with missing custom properties and add default properties programmatically
open-a-visio-diagram-enumerate-all-shapes-and-generate-a-json-file-containing-each-shape-s-properties.csDiagram, Pages, ShapesOpen a visio diagram enumerate all shapes and generate a json file containing each shape s properties
open-a-visio-diagram-extract-all-shape-tags-and-create-a-tag-frequency-report-in-csv-format.csDiagram, Pages, ShapesOpen a visio diagram extract all shape tags and create a tag frequency report in csv format
open-a-visio-diagram-extract-shape-comments-translate-them-using-an-external-service-and-update-the-diagram.csDiagram, Pages, SaveOpen a visio diagram extract shape comments translate them using an external service and update the diagram
open-a-visio-diagram-extract-shape-custom-property-values-and-populate-an-external-database-table-with-the-data.csDiagram, Pages, ShapesOpen a visio diagram extract shape custom property values and populate an external database table with the data
open-a-visio-diagram-extract-shape-geometry-simplify-curves-using-a-tolerance-and-export-simplified-shapes-as-dxf.csDiagram, Pages, SaveOpen a visio diagram extract shape geometry simplify curves using a tolerance and export simplified shapes as dxf
open-a-visio-diagram-rotate-selected-shapes-45-degrees-and-render-the-result-to-a-pdf-document.csDiagram, Pages, PdfSaveOptionsOpen a visio diagram rotate selected shapes 45 degrees and render the result to a pdf document
open-a-visio-document-batch-add-data-graphics-to-shapes-based-on-external-excel-values-then-save.csDiagram, Pages, SaveOpen a visio document batch add data graphics to shapes based on external excel values then save
open-a-visio-document-batch-resize-all-shapes-to-a-uniform-width-then-save-the-updated-file.csDiagram, Pages, SaveOpen a visio document batch resize all shapes to a uniform width then save the updated file
open-a-visio-document-extract-shape-comments-and-store-them-in-a-relational-database-with-shape-identifiers.csDiagram, Pages, ShapesOpen a visio document extract shape comments and store them in a relational database with shape identifiers
open-a-visio-document-programmatically-lock-all-shapes-to-prevent-editing-and-export-the-locked-diagram-to-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio document programmatically lock all shapes to prevent editing and export the locked diagram to pdf
open-a-visio-file-apply-a-custom-compression-level-when-saving-to-pdf-to-reduce-file-size.csDiagram, PdfSaveOptions, SaveOpen a visio file apply a custom compression level when saving to pdf to reduce file size
open-a-visio-file-apply-a-custom-style-sheet-to-all-shapes-and-render-the-diagram-as-an-emf-image.csDiagram, ImageSaveOptions, PagesOpen a visio file apply a custom style sheet to all shapes and render the diagram as an emf image
open-a-visio-file-apply-a-uniform-margin-of-10-mm-around-each-page-and-save-as-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio file apply a uniform margin of 10 mm around each page and save as pdf
open-a-visio-file-batch-replace-all-instances-of-a-specific-shape-master-with-another-master-then-save.csAddShape, Diagram, PagesOpen a visio file batch replace all instances of a specific shape master with another master then save
open-a-visio-file-batch-replace-all-text-placeholders-with-values-from-a-json-file-then-export-to-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio file batch replace all text placeholders with values from a json file then export to pdf
open-a-visio-file-calculate-the-bounding-box-of-each-shape-and-write-the-dimensions-to-a-json-file.csDiagram, Pages, ShapesOpen a visio file calculate the bounding box of each shape and write the dimensions to a json file
open-a-visio-file-detect-shapes-with-overlapping-text-boxes-and-automatically-adjust-positions-to-avoid-overlap.csDiagram, Pages, SaveOpen a visio file detect shapes with overlapping text boxes and automatically adjust positions to avoid overlap
open-a-visio-file-extract-all-shape-ids-and-their-bounding-rectangles-and-output-to-a-csv-file.csDiagram, Pages, ShapesOpen a visio file extract all shape ids and their bounding rectangles and output to a csv file
open-a-visio-file-extract-shape-geometry-simplify-polygons-using-a-tolerance-and-export-simplified-shapes-as-svg.csDiagram, Pages, SVGSaveOptionsOpen a visio file extract shape geometry simplify polygons using a tolerance and export simplified shapes as svg
open-a-visio-file-extract-shape-ids-and-their-associated-comments-and-output-to-a-markdown-table.csDiagram, Pages, diagramOpen a visio file extract shape ids and their associated comments and output to a markdown table
open-a-visio-file-extract-shape-ids-and-their-associated-data-fields-and-write-to-an-xml-document.csDiagram, Pages, ShapesOpen a visio file extract shape ids and their associated data fields and write to an xml document
open-a-visio-file-extract-shape-ids-and-their-associated-hyperlink-urls-and-write-them-to-a-json-array.csDiagram, Pages, ShapesOpen a visio file extract shape ids and their associated hyperlink urls and write them to a json array
open-a-visio-file-extract-shape-layer-information-and-generate-a-csv-mapping-shapes-to-their-layers.csDiagram, Pages, ShapesOpen a visio file extract shape layer information and generate a csv mapping shapes to their layers
open-a-visio-file-extract-shape-rotation-angles-and-create-a-csv-listing-shape-ids-with-their-angles.csDiagram, Pages, ShapesOpen a visio file extract shape rotation angles and create a csv listing shape ids with their angles
open-a-visio-file-extract-the-diagram-s-metadata-such-as-author-and-creation-date-and-write-to-json.csDiagramOpen a visio file extract the diagram s metadata such as author and creation date and write to json
open-a-visio-file-extract-the-list-of-custom-properties-from-each-shape-and-output-to-an-excel-worksheet.csDiagram, Pages, ShapesOpen a visio file extract the list of custom properties from each shape and output to an excel worksheet
open-a-visio-file-programmatically-set-the-page-orientation-to-landscape-for-all-pages-and-save-as-pdf.csDiagram, Pages, PdfSaveOptionsOpen a visio file programmatically set the page orientation to landscape for all pages and save as pdf
open-a-visio-file-replace-all-gradient-fills-with-solid-colors-defined-in-a-json-configuration-then-save.csDiagram, Pages, SaveOpen a visio file replace all gradient fills with solid colors defined in a json configuration then save
open-a-visio-file-validate-that-every-shape-contains-alt-text-and-generate-a-report-of-missing-entries.csDiagram, Pages, ShapesOpen a visio file validate that every shape contains alt text and generate a report of missing entries
override-inherited-fill-colors-by-assigning-a-new-fill-instance-with-custom-background-and-foreground-values.csDiagram, Page, PagesOverride inherited fill colors by assigning a new fill instance with custom background and foreground values
parallelize-theme-application-across-pages-using-parallel-foreach-to-reduce-overall-processing-duration.csDiagram, Pages, PresetThemeParallelize theme application across pages using parallel foreach to reduce overall processing duration
perform-a-depth-first-traversal-of-the-shape-hierarchy-to-count-descendant-shapes.csDiagram, Pages, ShapesPerform a depth first traversal of the shape hierarchy to count descendant shapes
perform-batch-processing-to-set-a-uniform-paragraph-margin-for-shapes-across-multiple-diagram-files.csDiagram, Pages, SavePerform batch processing to set a uniform paragraph margin for shapes across multiple diagram files
process-multiple-diagram-files-in-a-batch-applying-the-same-theme-to-all-shapes-on-each-file.csDiagram, Pages, PresetThemeProcess multiple diagram files in a batch applying the same theme to all shapes on each file
programmatically-attach-a-connector-to-the-nearest-gluing-enabled-shape-based-on-euclidean-distance.csDiagram, Pages, SaveProgrammatically attach a connector to the nearest gluing enabled shape based on euclidean distance
programmatically-clone-a-shape-inherit-its-fill-settings-then-modify-the-clone-s-line-inheritance-flag.csAddShape, Diagram, PagesProgrammatically clone a shape inherit its fill settings then modify the clone s line inheritance flag
programmatically-set-a-shape-s-glue-options-to-allow-only-incoming-connectors-not-outgoing.csDiagram, Pages, SaveProgrammatically set a shape s glue options to allow only incoming connectors not outgoing
protect-the-shape-from-editing-while-allowing-paragraph-text-modifications-and-verify-protection.csDiagram, Pages, SaveProtect the shape from editing while allowing paragraph text modifications and verify protection
read-a-custom-user-defined-cell-named-cost-from-a-shape-s-data-collection-into-a-dictionary.csDiagram, Pages, ShapesRead a custom user defined cell named cost from a shape s data collection into a dictionary
read-a-visio-diagram-apply-a-conditional-formatting-rule-that-colors-shapes-based-on-numeric-data-values.csDiagram, Pages, SaveRead a visio diagram apply a conditional formatting rule that colors shapes based on numeric data values
read-a-visio-diagram-apply-a-custom-color-palette-to-all-shapes-and-export-the-result-as-a-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio diagram apply a custom color palette to all shapes and export the result as a pdf
read-a-visio-diagram-apply-a-grayscale-filter-to-all-picture-shapes-and-save-the-result-as-a-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio diagram apply a grayscale filter to all picture shapes and save the result as a pdf
read-a-visio-diagram-apply-a-watermark-text-to-every-page-and-save-the-watermarked-document-as-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio diagram apply a watermark text to every page and save the watermarked document as pdf
read-a-visio-diagram-batch-apply-a-custom-theme-to-all-pages-and-export-the-themed-diagram-to-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio diagram batch apply a custom theme to all pages and export the themed diagram to pdf
read-a-visio-diagram-batch-convert-all-connector-lines-to-dashed-style-and-save-the-modified-diagram.csDiagram, Pages, SaveRead a visio diagram batch convert all connector lines to dashed style and save the modified diagram
read-a-visio-diagram-batch-convert-all-shapes-to-high-resolution-tiff-and-store-them-in-a-date-named-folder.csDiagram, ImageSaveOptions, PagesRead a visio diagram batch convert all shapes to high resolution tiff and store them in a date named folder
read-a-visio-diagram-batch-convert-all-shapes-to-svg-embed-metadata-attributes-and-store-in-a-version-controlled-reposit.csDiagram, Pages, SVGSaveOptionsRead a visio diagram batch convert all shapes to svg embed metadata attributes and store in a version controlled reposit
read-a-visio-diagram-batch-convert-each-page-to-a-separate-pdf-with-bookmarks-for-each-shape.csDiagram, Pages, PdfSaveOptionsRead a visio diagram batch convert each page to a separate pdf with bookmarks for each shape
read-a-visio-diagram-batch-replace-all-shape-fill-patterns-with-solid-colors-from-a-palette-then-save.csDiagram, Pages, SaveRead a visio diagram batch replace all shape fill patterns with solid colors from a palette then save
read-a-visio-diagram-batch-replace-all-shape-line-styles-with-a-dashed-pattern-and-export-to-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio diagram batch replace all shape line styles with a dashed pattern and export to pdf
read-a-visio-diagram-extract-all-shape-images-convert-them-to-grayscale-and-archive-the-results-in-a-zip.csDiagram, Pages, ShapesRead a visio diagram extract all shape images convert them to grayscale and archive the results in a zip
read-a-visio-diagram-extract-shape-layer-hierarchy-and-visualize-the-hierarchy-as-a-dot-graph-file.csDiagram, Pages, ShapesRead a visio diagram extract shape layer hierarchy and visualize the hierarchy as a dot graph file
read-a-visio-diagram-extract-shape-metadata-into-a-csv-then-use-the-csv-to-generate-a-summary-report.csDiagram, Pages, ShapesRead a visio diagram extract shape metadata into a csv then use the csv to generate a summary report
read-a-visio-diagram-generate-a-printable-index-page-listing-all-shape-names-and-page-numbers-and-prepend-it.csDiagram, Page, PagesRead a visio diagram generate a printable index page listing all shape names and page numbers and prepend it
read-a-visio-diagram-generate-a-summary-of-shape-counts-per-master-and-write-the-summary-to-a-text-file.csDiagram, Pages, ShapesRead a visio diagram generate a summary of shape counts per master and write the summary to a text file
read-a-visio-diagram-identify-shapes-with-missing-hyperlinks-and-automatically-add-default-urls-based-on-shape-names.csDiagram, Pages, SaveRead a visio diagram identify shapes with missing hyperlinks and automatically add default urls based on shape names
read-a-visio-diagram-programmatically-add-a-page-footer-containing-the-current-date-and-save-as-pdf.csDiagram, PdfSaveOptions, SaveRead a visio diagram programmatically add a page footer containing the current date and save as pdf
read-a-visio-diagram-programmatically-set-page-background-color-to-white-and-export-each-page-as-a-separate-pdf.csDiagram, Page, PagesRead a visio diagram programmatically set page background color to white and export each page as a separate pdf
read-a-visio-document-filter-shapes-by-master-name-and-export-each-filtered-shape-to-separate-svg-files.csDiagram, Pages, SVGSaveOptionsRead a visio document filter shapes by master name and export each filtered shape to separate svg files
read-a-visio-file-apply-a-custom-border-thickness-to-all-shapes-and-export-each-page-as-a-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio file apply a custom border thickness to all shapes and export each page as a pdf
read-a-visio-file-apply-a-shadow-effect-to-all-connector-shapes-and-export-a-high-resolution-image.csDiagram, ImageSaveOptions, PagesRead a visio file apply a shadow effect to all connector shapes and export a high resolution image
read-a-visio-file-apply-a-uniform-line-thickness-to-all-connector-shapes-and-export-the-diagram-as-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio file apply a uniform line thickness to all connector shapes and export the diagram as pdf
read-a-visio-file-batch-add-page-numbers-to-the-footer-of-each-page-and-export-the-document-to-pdf.csDiagram, PdfSaveOptions, SaveRead a visio file batch add page numbers to the footer of each page and export the document to pdf
read-a-visio-file-batch-export-all-pages-as-individual-high-resolution-pngs-with-transparent-background.csDiagram, ImageSaveOptions, PagesRead a visio file batch export all pages as individual high resolution pngs with transparent background
read-a-visio-file-batch-increase-the-line-weight-of-all-connector-shapes-by-0-5-pt-and-export-to-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio file batch increase the line weight of all connector shapes by 0 5 pt and export to pdf
read-a-visio-file-batch-increase-the-opacity-of-all-shape-fills-to-90-and-save-the-updated-file.csDiagram, Pages, SaveRead a visio file batch increase the opacity of all shape fills to 90 and save the updated file
read-a-visio-file-batch-resize-all-picture-shapes-to-a-maximum-width-of-500-pixels-preserving-aspect-ratio.csDiagram, Pages, SaveRead a visio file batch resize all picture shapes to a maximum width of 500 pixels preserving aspect ratio
read-a-visio-file-batch-set-the-default-font-size-for-all-text-shapes-to-10-pt-and-export-to-pdf.csDiagram, Pages, PdfSaveOptionsRead a visio file batch set the default font size for all text shapes to 10 pt and export to pdf
read-a-visio-file-batch-set-the-page-background-to-a-light-gray-color-and-export-to-pdf.csDiagram, Page, PagesRead a visio file batch set the page background to a light gray color and export to pdf
read-a-visio-file-convert-each-page-to-a-separate-high-resolution-tiff-image-preserving-vector-quality-where-possible.csDiagram, ImageSaveOptions, PagesRead a visio file convert each page to a separate high resolution tiff image preserving vector quality where possible
read-a-visio-file-duplicate-a-specific-shape-multiple-times-arrange-duplicates-in-a-grid-and-export-to-pdf.csAddShape, Diagram, PagesRead a visio file duplicate a specific shape multiple times arrange duplicates in a grid and export to pdf
read-a-visio-file-extract-shape-hyperlinks-validate-url-format-and-generate-a-report-of-invalid-links.csDiagram, Pages, ShapesRead a visio file extract shape hyperlinks validate url format and generate a report of invalid links
read-a-visio-file-generate-a-dependency-graph-of-connector-relationships-and-visualize-the-graph-as-a-png-image.csDiagram, ImageSaveOptions, PageRead a visio file generate a dependency graph of connector relationships and visualize the graph as a png image
read-a-visio-file-generate-a-printable-index-of-all-pages-with-thumbnails-and-prepend-it-to-the-pdf-output.csDiagram, ImageSaveOptions, PageRead a visio file generate a printable index of all pages with thumbnails and prepend it to the pdf output
read-a-visio-file-generate-a-thumbnail-for-each-shape-at-64-64-pixels-and-store-them-in-a-cache.csDiagram, ImageSaveOptions, PagesRead a visio file generate a thumbnail for each shape at 64 64 pixels and store them in a cache
read-a-visio-file-generate-a-thumbnail-image-for-each-page-and-store-thumbnails-in-a-specified-folder.csDiagram, ImageSaveOptions, PagesRead a visio file generate a thumbnail image for each page and store thumbnails in a specified folder
read-a-visio-file-generate-a-vector-eps-file-for-each-page-and-store-them-in-an-output-directory.csDiagram, ImageSaveOptions, PagesRead a visio file generate a vector eps file for each page and store them in an output directory
read-multiple-visio-files-convert-each-shape-to-an-image-and-combine-all-images-into-a-multi-page-pdf.csDiagram, ImageSaveOptions, PagesRead multiple visio files convert each shape to an image and combine all images into a multi page pdf
read-multiple-visio-files-extract-all-shape-images-and-create-a-compressed-zip-archive-containing-the-images.csDiagram, Pages, ShapesRead multiple visio files extract all shape images and create a compressed zip archive containing the images
read-the-current-line-jump-style-of-the-identified-connector-and-log-the-value.csDiagram, Pages, ShapesRead the current line jump style of the identified connector and log the value
read-the-current-xform-coordinates-width-and-height-of-a-selected-shape.csDiagram, Pages, ShapesRead the current xform coordinates width and height of a selected shape
read-the-dash-style-of-a-shape-s-line-map-it-to-a-descriptive-string-and-display-it.csDiagram, Pages, ShapesRead the dash style of a shape s line map it to a descriptive string and display it
read-the-fill-background-color-of-a-shape-and-compare-it-with-a-predefined-constant.csDiagram, Pages, ShapesRead the fill background color of a shape and compare it with a predefined constant
read-the-master-stencil-information-of-a-shape-and-log-the-master-name.csDiagram, Pages, ShapesRead the master stencil information of a shape and log the master name
remove-all-shapes-that-have-no-child-shapes-leaving-only-parent-elements.csDiagram, Pages, SaveRemove all shapes that have no child shapes leaving only parent elements
replace-a-shape-s-fill-pattern-with-a-solid-fill-by-clearing-the-pattern-index.csDiagram, Pages, SaveReplace a shape s fill pattern with a solid fill by clearing the pattern index
replace-a-shape-s-master-with-a-different-master-id-to-change-its-visual-representation.csAddShape, Diagram, MastersReplace a shape s master with a different master id to change its visual representation
replace-placeholder-text-in-paragraphs-with-values-from-a-dictionary-and-save-the-updated-diagram.csDiagram, Pages, SaveReplace placeholder text in paragraphs with values from a dictionary and save the updated diagram
reset-a-shape-s-theme-to-default-values-before-applying-a-new-custom-theme.csDiagram, Pages, PresetThemeReset a shape s theme to default values before applying a new custom theme
reset-all-connector-line-jump-styles-to-the-library-s-default-setting-across-the-entire-diagram.csDiagram, Layout, PagesReset all connector line jump styles to the library s default setting across the entire diagram
resize-a-shape-by-setting-its-width-and-height-to-given-dimensions.csDiagram, Pages, SaveResize a shape by setting its width and height to given dimensions
retrieve-a-page-object-from-the-diagram-by-its-name.csDiagram, Pages, SaveRetrieve a page object from the diagram by its name
retrieve-a-shape-by-its-unique-id-and-output-its-name-property.csDiagram, Pages, ShapesRetrieve a shape by its unique id and output its name property
retrieve-a-shape-by-its-unique-id-from-a-specific-page-and-store-it-in-a-variable.csDiagram, Pages, ShapesRetrieve a shape by its unique id from a specific page and store it in a variable
retrieve-a-shape-by-its-unique-identifier-from-the-loaded-diagram-for-further-processing.csDiagram, Pages, ShapesRetrieve a shape by its unique identifier from the loaded diagram for further processing
retrieve-a-shape-by-name-read-its-locpiny-cell-and-compute-the-absolute-piny-value.csDiagram, Pages, SaveRetrieve a shape by name read its locpiny cell and compute the absolute piny value
retrieve-a-shape-s-id-using-its-name-to-facilitate-lookup-operations-in-code.csDiagram, Pages, ShapesRetrieve a shape s id using its name to facilitate lookup operations in code
retrieve-a-shape-s-line-pattern-and-change-it-to-a-dotted-style.csDiagram, Pages, SaveRetrieve a shape s line pattern and change it to a dotted style
retrieve-a-shape-s-pinx-and-piny-cells-after-moving-it-to-confirm-new-absolute-coordinates.csDiagram, Pages, SaveRetrieve a shape s pinx and piny cells after moving it to confirm new absolute coordinates
retrieve-a-shape-s-width-and-height-properties-using-its-id-for-layout-calculations.csDiagram, Pages, ShapesRetrieve a shape s width and height properties using its id for layout calculations
retrieve-a-specific-page-such-as-page-2-from-the-loaded-diagram.csDiagram, Pages, diagramRetrieve a specific page such as page 2 from the loaded diagram
retrieve-all-shapes-glued-to-a-master-shape-and-output-their-identifiers-to-a-csv-file.csDiagram, Pages, ShapesRetrieve all shapes glued to a master shape and output their identifiers to a csv file
retrieve-fill-property-details-such-as-color-and-pattern-after-confirming-inheritance-is-disabled.csDiagram, Pages, ShapesRetrieve fill property details such as color and pattern after confirming inheritance is disabled
retrieve-ids-of-shapes-connected-to-a-given-shape-using-shape-connectedshapes.csDiagram, Pages, ShapesRetrieve ids of shapes connected to a given shape using shape connectedshapes
retrieve-the-automatically-assigned-id-of-the-newly-added-shape-for-further-operations.csAddShape, Diagram, PagesRetrieve the automatically assigned id of the newly added shape for further operations
retrieve-the-paragraph-collection-from-the-shape-and-iterate-to-output-each-paragraph-s-content.csDiagram, Pages, ShapesRetrieve the paragraph collection from the shape and iterate to output each paragraph s content
rotate-a-shape-by-modifying-its-xform-rotation-property-to-a-specified-angle.csDiagram, Pages, SaveRotate a shape by modifying its xform rotation property to a specified angle
rotate-all-group-shapes-on-a-specific-page-uniformly-by-thirty-degrees-for-consistent-orientation.csDiagram, Pages, SaveRotate all group shapes on a specific page uniformly by thirty degrees for consistent orientation
rotate-the-located-shape-to-a-specific-angle-using-the-setangle-method.csDiagram, Pages, SaveRotate the located shape to a specific angle using the setangle method
save-the-modified-diagram-back-to-a-visio-file-preserving-original-page-layout.csDiagram, Save, diagramSave the modified diagram back to a visio file preserving original page layout
save-the-modified-diagram-into-a-memory-stream-for-further-processing-in-a-web-service.csDiagram, Pages, SaveSave the modified diagram into a memory stream for further processing in a web service
save-the-modified-diagram-to-a-new-file-and-ensure-the-file-size-reflects-added-content.csDiagram, Pages, SaveSave the modified diagram to a new file and ensure the file size reflects added content
save-the-modified-diagram-to-a-new-file-while-preserving-original-master-shape-definitions.csDiagram, Pages, SaveSave the modified diagram to a new file while preserving original master shape definitions
save-the-modified-diagram-to-a-new-vsdx-file-using-diagram-save-with-appropriate-format.csDiagram, Pages, SaveSave the modified diagram to a new vsdx file using diagram save with appropriate format
save-the-updated-diagram-to-a-new-vsdx-file-while-preserving-original-page-order.csDiagram, Save, diagramSave the updated diagram to a new vsdx file while preserving original page order
scale-a-shape-s-xform-width-and-height-by-a-factor-of-0-5-and-verify-dimensions.csDiagram, Pages, SaveScale a shape s xform width and height by a factor of 0 5 and verify dimensions
serialize-a-shape-s-geometry-data-to-json-for-external-processing.csDiagram, Pages, ShapesSerialize a shape s geometry data to json for external processing
serialize-shape-inheritance-settings-to-json-format-for-external-configuration-management-and-version-control.csDiagram, Pages, ShapesSerialize shape inheritance settings to json format for external configuration management and version control
serialize-the-modified-diagram-to-a-byte-array-for-transmission-over-a-network-service.csDiagram, Pages, SaveSerialize the modified diagram to a byte array for transmission over a network service
serialize-the-paragraph-collection-of-a-shape-to-json-for-integration-with-external-services.csDiagram, Pages, ShapesSerialize the paragraph collection of a shape to json for integration with external services
set-a-45-degree-x-axis-rotation-on-a-shape-and-retrieve-its-threedformat-properties.csDiagram, Pages, SaveSet a 45 degree x axis rotation on a shape and retrieve its threedformat properties
set-a-custom-saveoptions-object-to-control-image-resolution-when-converting-shapes-to-png.csDiagram, ImageSaveOptions, SaveSet a custom saveoptions object to control image resolution when converting shapes to png
set-a-custom-theme-color-on-a-shape-using-the-themecolor-property-with-a-hexadecimal-value.csDiagram, Pages, SaveSet a custom theme color on a shape using the themecolor property with a hexadecimal value
set-a-shape-s-line-color-using-a-hexadecimal-string-and-confirm-the-color-conversion-succeeds.csAddShape, Diagram, PagesSet a shape s line color using a hexadecimal string and confirm the color conversion succeeds
set-a-shape-s-line-transparency-to-50-percent-and-observe-the-pdf-output.csDiagram, Pages, PdfSaveOptionsSet a shape s line transparency to 50 percent and observe the pdf output
set-connector-reroute-option-only-for-connectors-that-have-more-than-three-bends-in-their-path.csDiagram, Layout, PagesSet connector reroute option only for connectors that have more than three bends in their path
set-hyperlink-property-on-a-themed-shape-to-open-a-documentation-url-when-clicked.csAddShape, Diagram, PagesSet hyperlink property on a themed shape to open a documentation url when clicked
set-multiline-paragraph-text-including-bullet-points-for-the-newly-created-shape.csDiagram, Pages, SaveSet multiline paragraph text including bullet points for the newly created shape
set-paragraph-line-spacing-to-1-5-lines-for-improved-readability-across-all-shapes-on-a-page.csDiagram, Pages, SaveSet paragraph line spacing to 1 5 lines for improved readability across all shapes on a page
set-the-connector-s-line-jump-style-to-arc-to-improve-visual-clarity.csDiagram, Layout, PagesSet the connector s line jump style to arc to improve visual clarity
set-the-connector-s-line-jump-style-to-none-when-no-jump-visual-is-required.csDiagram, Layout, PagesSet the connector s line jump style to none when no jump visual is required
set-the-connector-s-line-jump-style-to-square-for-better-shape-intersection-handling.csDiagram, Layout, PagesSet the connector s line jump style to square for better shape intersection handling
set-the-distancefromground-property-to-20-points-for-a-shape-and-preview-elevation.csDiagram, ImageSaveOptions, PagesSet the distancefromground property to 20 points for a shape and preview elevation
set-the-fill-foreground-color-of-a-shape-to-a-specific-color-using-the-fill-property.csDiagram, Pages, SaveSet the fill foreground color of a shape to a specific color using the fill property
set-the-height-of-a-selected-shape-to-2-5-centimeters-using-the-setheight-method.csDiagram, Pages, SaveSet the height of a selected shape to 2 5 centimeters using the setheight method
set-the-keeptextflat-flag-to-false-on-a-rotated-shape-to-allow-text-rotation.csDiagram, Pages, SaveSet the keeptextflat flag to false on a rotated shape to allow text rotation
set-the-keeptextflat-flag-to-true-on-a-rotated-shape-to-keep-text-horizontal.csDiagram, Pages, SaveSet the keeptextflat flag to true on a rotated shape to keep text horizontal
set-the-rotationtype-to-fixed-and-apply-a-90-degree-y-axis-rotation.csDiagram, Pages, SaveSet the rotationtype to fixed and apply a 90 degree y axis rotation
set-the-x-coordinate-of-a-shape-to-a-specific-value-while-preserving-its-y-position.csDiagram, Pages, SaveSet the x coordinate of a shape to a specific value while preserving its y position
update-a-shape-s-fill-pattern-to-solid-and-apply-a-green-background-color.csDiagram, Pages, SaveUpdate a shape s fill pattern to solid and apply a green background color
update-paragraph-alignment-to-justified-for-all-paragraphs-in-shapes-belonging-to-a-specific-master.csDiagram, Pages, SaveUpdate paragraph alignment to justified for all paragraphs in shapes belonging to a specific master
update-the-line-weight-and-dash-pattern-of-a-themed-shape-after-applying-the-preset-theme.csDiagram, Pages, SaveUpdate the line weight and dash pattern of a themed shape after applying the preset theme
use-a-batch-process-to-set-line-inheritance-to-false-for-all-shapes-in-multiple-diagrams.csDiagram, Pages, SaveUse a batch process to set line inheritance to false for all shapes in multiple diagrams
use-a-configuration-file-to-specify-which-shapes-should-retain-custom-fill-while-inheriting-line-styles.csDiagram, Pages, SaveUse a configuration file to specify which shapes should retain custom fill while inheriting line styles
use-a-configuration-file-to-specify-which-theme-to-apply-to-each-shape-type-during-runtime.csDiagram, Pages, PresetThemeUse a configuration file to specify which theme to apply to each shape type during runtime
use-a-custom-font-family-for-all-paragraphs-in-shapes-imported-from-a-legacy-stencil-file.csAddMaster, AddShape, DiagramUse a custom font family for all paragraphs in shapes imported from a legacy stencil file
use-a-dictionary-to-map-shape-ids-to-custom-connection-point-collections-for-later-batch-updates.csDiagram, Pages, SaveUse a dictionary to map shape ids to custom connection point collections for later batch updates
use-inheritfill-to-read-inherited-colors-then-customize-them-via-the-fill-property.csDiagram, Pages, SaveUse inheritfill to read inherited colors then customize them via the fill property
use-linq-to-filter-shapes-that-currently-inherit-both-fill-and-line-formatting-from-masters.csDiagram, Pages, ShapesUse linq to filter shapes that currently inherit both fill and line formatting from masters
use-linq-to-select-connector-shapes-and-set-their-connectors-type-to-orthogonal-style.csDiagram, Pages, SaveUse linq to select connector shapes and set their connectors type to orthogonal style
use-linq-to-select-shapes-whose-fill-foreground-color-matches-a-specific-rgb-value-for-targeted-updates.csDiagram, Pages, SaveUse linq to select shapes whose fill foreground color matches a specific rgb value for targeted updates
use-shape-data-fields-to-drive-conditional-theme-selection-for-each-shape-during-processing.csDiagram, Pages, PresetThemeUse shape data fields to drive conditional theme selection for each shape during processing
use-shape-s-shapesheet-to-directly-modify-theme-related-cells-for-advanced-customization-in-the-diagram-s-underlying-dat.csDiagram, Pages, SaveUse shape s shapesheet to directly modify theme related cells for advanced customization in the diagram s underlying dat
use-shape-setconnectorstype-to-change-a-connector-shape-to-a-curved-style-and-observe-rendering.csAddShape, ConnectShapesViaConnector, DiagramUse shape setconnectorstype to change a connector shape to a curved style and observe rendering
use-shapecollection-getshape-to-locate-multiple-shapes-by-id-before-performing-batch-rotations.csDiagram, Pages, SaveUse shapecollection getshape to locate multiple shapes by id before performing batch rotations
use-the-connectshapesviaconn-method-to-connect-two-shapes-by-specifying-source-and-target-indexes.csAddShape, ConnectShapesViaConnector, DiagramUse the connectshapesviaconn method to connect two shapes by specifying source and target indexes
validate-that-a-shape-s-xform-coordinates-remain-within-page-boundaries-after-translation-transformations.csDiagram, Pages, SaveValidate that a shape s xform coordinates remain within page boundaries after translation transformations
validate-that-all-shapes-have-non-null-master-references-before-performing-bulk-modifications.csDiagram, Pages, SaveValidate that all shapes have non null master references before performing bulk modifications
validate-that-all-shapes-on-a-page-inherit-line-formatting-from-their-masters-before-exporting.csDiagram, Pages, PdfSaveOptionsValidate that all shapes on a page inherit line formatting from their masters before exporting
validate-that-dynamic-connectors-have-reroute-enabled-after-setting-layout-confixedcode-appropriately-in-the-current-dia.csDiagram, Layout, PagesValidate that dynamic connectors have reroute enabled after setting layout confixedcode appropriately in the current dia
validate-that-each-shape-has-a-non-null-themecolor-after-applying-custom-colors-to-all-shapes.csDiagram, Pages, SaveValidate that each shape has a non null themecolor after applying custom colors to all shapes
validate-that-each-shape-s-first-paragraph-uses-the-default-font-after-applying-a-global-theme.csDiagram, Pages, PresetThemeValidate that each shape s first paragraph uses the default font after applying a global theme
validate-that-every-shape-in-the-diagram-has-a-unique-id-and-report-any-duplicates-found.csDiagram, Pages, ShapesValidate that every shape in the diagram has a unique id and report any duplicates found
validate-that-no-shape-exceeds-a-rotation-angle-of-180-degrees-on-any-axis.csDiagram, Pages, ShapesValidate that no shape exceeds a rotation angle of 180 degrees on any axis
validate-that-no-shape-exceeds-a-rotationyangle-of-360-degrees.csDiagram, Pages, ShapesValidate that no shape exceeds a rotationyangle of 360 degrees
validate-that-paragraph-text-does-not-exceed-a-specified-character-limit-before-saving-the-diagram.csDiagram, Pages, SaveValidate that paragraph text does not exceed a specified character limit before saving the diagram
validate-that-shape-ids-remain-consistent-after-renaming-shape-names.csDiagram, Pages, SaveValidate that shape ids remain consistent after renaming shape names
validate-that-shapes-inheriting-fill-from-masters-correctly-display-master-s-gradient-after-export-to-pdf.csDiagram, Pages, PdfSaveOptionsValidate that shapes inheriting fill from masters correctly display master s gradient after export to pdf
validate-that-the-distancefromground-value-for-each-shape-does-not-exceed-100-points.csDiagram, Pages, ShapesValidate that the distancefromground value for each shape does not exceed 100 points
verify-that-all-connector-shapes-contain-at-least-one-valid-connection-index-and-flag-invalid-ones.csDiagram, Pages, ShapesVerify that all connector shapes contain at least one valid connection index and flag invalid ones
verify-that-the-angle-cell-of-each-rotated-shape-matches-the-intended-rotation-value.csDiagram, Pages, SaveVerify that the angle cell of each rotated shape matches the intended rotation value
verify-that-two-specified-shapes-are-glued-or-connected-properly.csDiagram, Pages, ShapesVerify that two specified shapes are glued or connected properly
verify-the-rotation-by-reading-the-shape-s-angle-cell-after-calling-setangle.csDiagram, Pages, SaveVerify the rotation by reading the shape s angle cell after calling setangle
verify-whether-a-shape-belongs-to-any-group-and-add-it-if-not.csDiagram, Pages, SaveVerify whether a shape belongs to any group and add it if not
write-a-function-that-returns-the-number-of-connectors-attached-to-each-gluing-enabled-shape.csDiagram, Pages, ShapesWrite a function that returns the number of connectors attached to each gluing enabled shape
write-a-script-that-reads-shape-inheritance-data-and-outputs-a-csv-summary-for-reporting-purposes.csDiagram, Pages, ShapesWrite a script that reads shape inheritance data and outputs a csv summary for reporting purposes
write-a-script-to-export-a-list-of-glued-shape-pairs-to-a-json-file-for-analysis.csDiagram, Pages, ShapesWrite a script to export a list of glued shape pairs to a json file for analysis

Command Reference

# Build the warmup project
cd compiler/CSharpRunner/_warmup
dotnet build

# Run a specific example (copy .cs content to Program.cs first)
dotnet run

# Build with verbose output
dotnet build --verbosity detailed

.csproj Template

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>disable</ImplicitUsings>
    <NoWarn>MSB3277</NoWarn>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Aspose.Diagram">
      <HintPath>..\..\libs\Aspose.Diagram.dll</HintPath>
    </Reference>
  </ItemGroup>
</Project>

Testing Guide

Build Verification

dotnet build  # Must exit with rc=0, zero compiler errors

Run Verification

dotnet run    # rc=0 = pass, rc!=0 with unhandled exception = fail

Expected Output Patterns

PatternMeaning
rc=0✅ Pass — example compiled and ran successfully
rc=1 compiler errors❌ Fail — CS error codes indicate API misuse
rc!=0 runtime⚠️ Check — may be acceptable (missing input file)
TIMEOUT✅ Pass — Console.ReadLine() treated as successful completion

Common CS Error Codes

CodeMeaningFix
CS1061Member does not existCheck correct property/method name
CS0200Property is read-onlyAccess via .Value instead of assignment
CS0029Cannot convert typeUse correct enum type (BOOL not bool)
CS0117Name does not exist in typeCheck enum member name casing
CS0234Namespace not foundAdd correct using directive

Pipeline

AttemptStrategyTrigger
1MCP direct retrieval + code assemblyAlways
2MCP retrieval with injected rulesAttempt 1 fails
3LLM repair with compiler errors + rulesAttempt 2 fails

Only examples that pass both dotnet build and dotnet run are committed.

General Tips

  • See root agents.md for repository-wide boundaries, anti-patterns, domain knowledge, and testing guidelines
  • Always check rules/rules.json for the latest API correction rules
  • SaveFileFormat enum must always be PascalCase: Vsdx, Pdf, Png, Jpeg, Svg, Html — never ALL_CAPS
  • Diagram class does NOT implement IDisposable — never use using (Diagram ...)

Key API Surface

  • AddMaster
  • AddShape
  • ConnectShapesViaConnector
  • Connection
  • Diagram
  • HTMLSaveOptions
  • ImageSaveOptions
  • Layout
  • Masters
  • Page
  • Pages
  • PdfSaveOptions
  • PresetTheme
  • PresetThemeVariant
  • Prop
  • SVGSaveOptions
  • Save
  • Shape
  • Shapes
  • StyleSheet
  • StyleSheets
  • User
  • connection
  • diagram
  • master
  • page
  • shape

Real-World Use Cases

Common scenarios where Aspose.Diagram for .NET working with shapes capabilities are applied in production applications:

  • Adding, positioning, and styling shapes dynamically from database records
  • Building network topology diagrams programmatically from infrastructure data
  • Generating org charts by adding and connecting shape objects from HR systems
  • Automating floor plan creation by placing shape objects at calculated coordinates

Developer Q&A

Frequently asked questions about Working With Shapes in Aspose.Diagram for .NET:

Q: How do I get started with Working With Shapes in Aspose.Diagram for .NET?

A: Add a reference to Aspose.Diagram.dll (v26.9.0), include using Aspose.Diagram; and using Aspose.Diagram.Saving;, then use Diagram diagram = new Diagram("input.vsdx"); to load a file. All examples in this category target net8.0.

Q: Why do I get CS1674 when using using (Diagram diagram = ...)?

A: Diagram does not implement IDisposable in Aspose.Diagram for .NET. Remove the using statement and declare the variable normally: Diagram diagram = new Diagram("input.vsdx");

Q: Why does my code fail with CS0117 on SaveFileFormat.VSDX?

A: SaveFileFormat enum members use PascalCase in Aspose.Diagram for .NET. Use SaveFileFormat.Vsdx (not VSDX). The same applies to all formats: SaveFileFormat.Pdf, SaveFileFormat.Png, SaveFileFormat.Svg.

Q: Why do I get CS0029 when assigning true to a BOOL property?

A: Aspose.Diagram uses its own BOOL enumeration type, not C# bool. Use BOOL.True and BOOL.False instead of plain true/false for all Aspose.Diagram BOOL properties.

Q: How do I retrieve a Shape object after calling diagram.AddShape()?

A: diagram.AddShape() and page.AddShape() return a long shape ID, not a Shape object. Retrieve the shape using: Shape shape = page.Shapes.GetShape(shapeId);

Q: How do I get the width and height of a shape?

A: Use shape.XForm.Width.Value and shape.XForm.Height.Value — direct shape.Width and shape.Height properties do not exist in Aspose.Diagram for .NET.

Related Categories

Category Statistics

  • Total examples: 459
  • Failed: 0
  • Pass rate: 100.0%

Failed Tasks

All tasks passed ✅


Updated: 2026-09-24 | Examples: 459 | Pass Rate: 100.0% | ↑ Root agents.md | Aspose.Diagram for .NET

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.