feat(working-with-shapes): add 459 compiler-validated C# examples - Working With Shapes [26.8.0/net8.0] - #98
Merged
Conversation
…o-vector-emf-format-and-combine-them-into-a-single-multi-page-document Task: Load a visio file convert all shapes to vector emf format and combine them into a single multi page document - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…o-a-vector-pdf-page-and-preserve-original-layer-ordering Task: Load a visio file convert each shape to a vector pdf page and preserve original layer ordering - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…issing-fill-colors-assign-a-default-color-and-save-the-corrected-diagram Task: Load a visio file detect shapes with missing fill colors assign a default color and save the corrected diagram - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…d-and-save-it-as-a-png-with-300-dpi Task: Load a visio file extract a shape by id and save it as a png with 300 dpi - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-properties-map-them-to-a-database-schema-and-insert-records Task: Load a visio file extract shape custom properties map them to a database schema and insert records - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-page-linking-to-each-shape-s-detailed-page-and-prepend-to-document Task: Load a visio file generate a pdf index page linking to each shape s detailed page and prepend to document - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-legend-that-maps-shape-colors-to-their-meanings-and-prepend-to-pdf Task: Load a visio file generate a printable legend that maps shape colors to their meanings and prepend to pdf - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…s-file-for-each-shape-and-zip-the-eps-collection Task: Load a visio file generate a vector eps file for each shape and zip the eps collection - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…eding-a-size-threshold-and-flag-them-by-adding-a-red-border Task: Load a visio file identify shapes exceeding a size threshold and flag them by adding a red border - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-no-assigned-master-and-assign-a-default-master-programmatically Task: Load a visio file identify shapes with no assigned master and assign a default master programmatically - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…t-and-verify-successful-initialization Task: Load a visio file into a diagram object and verify successful initialization - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…iagrams-into-a-single-file-preserving-all-shape-layers-and-connections Task: Load a visio file merge two separate diagrams into a single file preserving all shape layers and connections - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…nge-connector-routing-style-to-orthogonal-and-export-the-updated-diagram-to-svg Task: Load a visio file programmatically change connector routing style to orthogonal and export the updated diagram to svg - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…olors-based-on-external-csv-data-then-save-the-modified-diagram Task: Load a visio file replace shape fill colors based on external csv data then save the modified diagram - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…object-and-verify-successful-initialization Task: Load a visio vsdx file into a diagram object and verify successful initialization - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ach-shape-s-name-and-master-stencil Task: Load a vsd file from a path and list each shape s name and master stencil - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…iagram-instance-and-verify-successful-loading Task: Load a vsdx diagram from disk into a diagram instance and verify successful loading - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…rate-all-shape-ids-in-the-diagram Task: Load a vsdx file from a path and enumerate all shape ids in the diagram - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-id-and-calculate-its-absolute-pinx-coordinate Task: Load a vsdx file locate a sub shape by id and calculate its absolute pinx coordinate - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…tory-apply-a-common-theme-to-new-shapes-and-save-them Task: Load multiple visio files from a directory apply a common theme to new shapes and save them - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…agram-by-its-unique-identifier-or-name Task: Locate a connector shape within the diagram by its unique identifier or name - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…r-and-retrieve-its-fill-inherit-property-value Task: Locate a shape by its unique identifier and retrieve its fill inherit property value - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…collection-getshape-with-the-shape-id Task: Locate a shape on the page using shapecollection getshape with the shape id - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…apes-while-allowing-other-modifications-and-verify-settings Task: Lock paragraph editing for specific shapes while allowing other modifications and verify settings - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…timestamp-and-shape-identifier-to-a-text-log-file Task: Log each theme application event with timestamp and shape identifier to a text log file - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…nships-before-and-after-diagram-modifications-for-audit-purposes Task: Log the total number of gluing relationships before and after diagram modifications for audit purposes - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…apply-the-office-theme-to-each-shape-sequentially Task: Loop through all shapes on a page and apply the office theme to each shape sequentially - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-apply-themes-based-on-corresponding-data-values Task: Map external csv data to shape ids and apply themes based on corresponding data values - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ndred-shapes-to-svg-and-log-the-duration-for-performance-analysis Task: Measure the time taken to convert a hundred shapes to svg and log the duration for performance analysis - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…a-single-shape-while-preserving-individual-formatting-attributes Task: Merge paragraphs from two shapes into a single shape while preserving individual formatting attributes - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-multiple-shapes-by-id-before-performing-batch-rotations Task: Use shapecollection getshape to locate multiple shapes by id before performing batch rotations - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-connect-two-shapes-by-specifying-source-and-target-indexes Task: Use the connectshapesviaconn method to connect two shapes by specifying source and target indexes - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…tes-remain-within-page-boundaries-after-translation-transformations Task: Validate that a shape s xform coordinates remain within page boundaries after translation transformations - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…-master-references-before-performing-bulk-modifications Task: Validate that all shapes have non null master references before performing bulk modifications - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…erit-line-formatting-from-their-masters-before-exporting Task: Validate that all shapes on a page inherit line formatting from their masters before exporting - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…reroute-enabled-after-setting-layout-confixedcode-appropriately-in-the-current-dia Task: Validate that dynamic connectors have reroute enabled after setting layout confixedcode appropriately in the current dia - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…l-themecolor-after-applying-custom-colors-to-all-shapes Task: Validate that each shape has a non null themecolor after applying custom colors to all shapes - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…raph-uses-the-default-font-after-applying-a-global-theme Task: Validate that each shape s first paragraph uses the default font after applying a global theme - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…am-has-a-unique-id-and-report-any-duplicates-found Task: Validate that every shape in the diagram has a unique id and report any duplicates found - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ion-angle-of-180-degrees-on-any-axis Task: Validate that no shape exceeds a rotation angle of 180 degrees on any axis - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ionyangle-of-360-degrees Task: Validate that no shape exceeds a rotationyangle of 360 degrees - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…exceed-a-specified-character-limit-before-saving-the-diagram Task: Validate that paragraph text does not exceed a specified character limit before saving the diagram - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ent-after-renaming-shape-names Task: Validate that shape ids remain consistent after renaming shape names - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…rom-masters-correctly-display-master-s-gradient-after-export-to-pdf Task: Validate that shapes inheriting fill from masters correctly display master s gradient after export to pdf - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…alue-for-each-shape-does-not-exceed-100-points Task: Validate that the distancefromground value for each shape does not exceed 100 points - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…in-at-least-one-valid-connection-index-and-flag-invalid-ones Task: Verify that all connector shapes contain at least one valid connection index and flag invalid ones - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ated-shape-matches-the-intended-rotation-value Task: Verify that the angle cell of each rotated shape matches the intended rotation value - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…lued-or-connected-properly Task: Verify that two specified shapes are glued or connected properly - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…pe-s-angle-cell-after-calling-setangle Task: Verify the rotation by reading the shape s angle cell after calling setangle - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…group-and-add-it-if-not Task: Verify whether a shape belongs to any group and add it if not - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…er-of-connectors-attached-to-each-gluing-enabled-shape Task: Write a function that returns the number of connectors attached to each gluing enabled shape - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…tance-data-and-outputs-a-csv-summary-for-reporting-purposes Task: Write a script that reads shape inheritance data and outputs a csv summary for reporting purposes - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
…ed-shape-pairs-to-a-json-file-for-analysis Task: Write a script to export a list of glued shape pairs to a json file for analysis - Validated: dotnet build passed - Validated: dotnet run passed - Generator: Aspose.Diagram Examples Generator Agent v2.0 - Library: Aspose.Diagram for .NET 26.8.0 - Framework: net8.0 - Pipeline: MCP retrieval → rules injection → LLM repair
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working With Shapes — Compiler-Validated C# Examples
What this PR does
Adds 459 AI-generated, compiler-validated C# examples for the Working With Shapes category of Aspose.Diagram for .NET.
All examples were generated by the Aspose.Diagram Examples Generator Agent and passed the full three-attempt validation pipeline before being included.
Validation Summary
dotnet builddotnet runPipeline
Each example was generated and validated through:
Only examples that passed both
dotnet buildanddotnet runare included in this PR.Examples Added
access-a-shape-using-its-name-and-compare-its-id-with-the-expected-identifier.csaccess-line-property-details-like-dash-style-and-thickness-when-line-inheritance-is-enabled.csaccess-the-inheritfill-property-of-a-shape-to-retrieve-inherited-fill-settings.csaccess-the-layout-property-of-a-connector-shape-and-modify-its-x-and-y-coordinates-programmatically.csadd-a-circle-shape-with-a-specific-radius-to-the-diagram-s-shapes-collection.csadd-a-custom-connection-point-at-coordinates-1-2-3-4-to-a-shape-using-connections-add-method.csadd-a-master-shape-from-a-stencil-file-to-the-retrieved-page-using-its-master-name.csadd-a-new-rectangle-shape-to-the-page-using-diagram-addshape-with-master-id-and-position.csadd-a-rectangle-shape-with-defined-width-and-height-to-the-diagram-s-shapes-collection.csadd-a-triangle-shape-and-set-its-geometry-points-before-inserting-into-the-shapes-collection.csadd-connection-points-at-the-four-corners-of-a-rectangular-shape-by-calculating-corner-coordinates-from-locpin-values.csadd-custom-property-to-a-shape-indicating-the-applied-theme-name-for-future-reference.csadd-error-handling-to-skip-shapes-lacking-locpinx-y-cells-while-calculating-absolute-coordinates.csadd-the-modified-shape-back-to-the-page-s-shapes-collection-and-ensure-it-appears-in-the-diagram.csadjust-line-inheritance-flag-based-on-shape-type-enabling-inheritance-for-connectors-only.csadjust-the-duplicated-shape-s-position-by-ten-units-and-assign-it-a-new-unique-id.csadjust-the-layout-geometry-of-a-shape-after-theme-change-to-maintain-proper-alignment-on-the-page.csadjust-the-perspective-angle-of-a-shape-to-30-degrees-before-exporting-to-pdf.csadjust-the-width-of-a-group-sub-shape-to-5-0-inches-by-invoking-setwidth-with-double-precision.csadjust-the-y-coordinate-of-a-shape-by-adding-a-defined-offset-value.csafter-adding-a-shape-immediately-retrieve-its-geometry-data-to-confirm-correct-placement.csafter-rotating-a-shape-capture-its-new-bounding-box-coordinates-and-write-them-to-a-json-report.csapply-a-10-degree-rotationzangle-to-all-shapes-and-export-the-diagram-to-pdf.csapply-a-3-d-rotation-transformation-to-a-shape-after-theme-assignment-to-create-perspective-view.csapply-a-5-degree-rotationxangle-to-shapes-taller-than-200-points-and-export-to-pdf.csapply-a-dashed-line-style-to-a-shape-by-assigning-the-appropriate-dash-pattern.csapply-a-global-line-style-change-to-all-shapes-and-save-the-updated-diagram.csapply-a-global-setting-to-enforce-fill-inheritance-across-all-shapes-in-a-diagram-before-export.csapply-a-gradient-fill-theme-to-shapes-whose-area-exceeds-a-specified-size-threshold.csapply-a-gradient-fill-to-shapes-while-preserving-existing-paragraph-formatting-and-colors.csapply-a-predefined-theme-to-the-newly-created-shape-and-confirm-theme-properties-are-applied.csapply-a-rotation-of-45-degrees-to-a-shape-s-xform-and-verify-orientation.csapply-a-scaling-factor-of-1-2-to-both-width-and-height-of-a-shape-using-setwidth-and-setheight.csapply-a-theme-to-shapes-only-when-their-existing-fill-color-matches-a-specific-rgb-value.csapply-a-theme-to-shapes-whose-names-start-with-process-using-a-case-insensitive-comparison.csapply-a-uniform-distancefromground-of-15-points-to-all-shapes-in-the-diagram.csapply-combined-x-y-and-z-rotations-of-30-degrees-each-to-a-shape.csapply-conditional-formatting-to-paragraphs-based-on-their-length-using-larger-fonts-for-longer-texts.csapply-conditional-logic-to-enable-fill-inheritance-only-for-shapes-whose-area-exceeds-a-threshold.csapply-conditional-logic-to-set-shape-height-only-if-current-height-is-less-than-a-specified-threshold.csapply-different-themes-to-shapes-based-on-their-layer-assignment-within-the-diagram.csapply-the-preset-theme-bubble-to-the-retrieved-shape-and-confirm-theme-properties-changed.csassign-a-custom-property-category-to-a-shape-and-later-query-shapes-sharing-this-property.csattach-a-newly-created-connector-to-a-gluing-enabled-shape-and-verify-successful-attachment.csautomatically-disable-gluing-on-shapes-once-they-reach-a-maximum-number-of-attached-connectors.csbatch-convert-all-shapes-across-multiple-diagrams-to-high-resolution-png-files.csbatch-convert-all-shapes-on-a-specific-page-to-individual-svg-files.csbatch-job-sets-line-jump-style-to-arc-for-connectors-whose-source-shape-is-a-decision-node.csbatch-process-a-folder-of-vsdx-files-setting-each-connector-s-jump-style-to-none.csbatch-process-diagrams-in-a-folder-rotating-all-shapes-named-arrow-by-ninety-degrees-before-saving.csbatch-process-multiple-vsdx-files-in-a-directory-resizing-each-target-shape-to-a-predefined-width.csbatch-rotate-all-shapes-with-ids-greater-than-50-by-fifteen-degrees-across-multiple-pages.csbenchmark-performance-impact-of-toggling-fill-inherit-on-large-diagrams-containing-thousands-of-shapes.cscalculate-absolute-pinx-and-piny-for-all-sub-shapes-within-a-group-and-log-results-to-console.cscalculate-the-bounding-box-of-a-group-shape-by-aggregating-absolute-pinx-y-values-of-its-child-shapes.cschange-a-shape-s-line-color-to-blue-and-set-line-weight-to-two-points.cschange-a-shape-s-line-weight-to-a-new-value-and-verify-the-update-via-the-line-property.cschange-the-fill-gradient-of-a-shape-to-a-two-color-scheme-after-theme-application.cschange-the-second-paragraph-s-font-style-to-italic-and-set-its-text-color-to-dark-blue.cschange-the-shadow-effect-of-a-shape-after-applying-a-theme-to-enhance-visual-depth.cscheck-for-missing-shapes-by-id-before-applying-themes-and-log-any-discrepancies-found.cscheck-that-locpinx-and-locpiny-cells-contain-numeric-values-before-performing-absolute-pin-calculations.cscheck-the-line-inheritance-status-of-a-shape-by-reading-the-line-inherit-attribute.cscheck-whether-a-shape-inherits-its-fill-from-a-master-and-log-the-inheritance-status.cscheck-whether-a-shape-is-gluing-enabled-before-attempting-to-attach-a-connector.csclone-a-shape-modify-its-width-and-place-the-cloned-instance-on-a-different-page.csclone-a-shape-preserve-its-gluing-settings-and-insert-the-cloned-shape-elsewhere-in-the-diagram.csclone-an-existing-shape-apply-a-different-theme-to-the-clone-and-place-it-on-another-page.cscombine-fill-and-line-inheritance-checks-to-determine-if-a-shape-fully-inherits-formatting-from-its-master.cscompare-fill-inheritance-values-between-original-and-cloned-diagrams-to-ensure-consistency-after-duplication.cscompare-line-jump-styles-between-two-diagram-versions-to-detect-visual-differences.cscompare-paragraph-text-between-two-versions-of-a-diagram-and-highlight-differences-programmatically.cscompare-shape-appearance-before-and-after-theme-application-by-rendering-thumbnails-and-saving-them.cscompare-the-fill-colors-of-two-shapes-and-log-a-warning-if-they-differ.cscompare-visual-output-of-shapes-with-keeptextflat-true-in-pdf-and-svg-formats.csconfigure-the-rotation-type-to-perspective-and-assign-a-45-degree-perspective-angle.csconnect-a-star-shape-to-a-rectangle-using-source-index-1-and-target-index-2.csconnect-sub-shapes-from-three-different-groups-using-separate-connectors-and-list-resulting-connection-ids.csconnect-two-sub-shapes-from-different-group-shapes-using-page-connectshapesviaconnector-method.csconvert-a-shape-to-html-format-preserving-visual-styling-accurately.csconvert-a-shape-to-pdf-format-using-appropriate-save-options.csconvert-a-shape-to-svg-and-ensure-its-line-dash-pattern-is-preserved.csconvert-a-shape-to-svg-and-verify-that-text-elements-retain-original-fonts.csconvert-a-shape-to-svg-format-using-default-export-settings.csconvert-a-shape-to-swf-format-and-handle-potential-conversion-errors.csconvert-multiple-shapes-to-svg-in-a-loop-appending-each-result-to-a-single-html-document.cscopy-a-shape-s-custom-data-cells-to-another-shape-and-verify-data-integrity-after-copying.cscopy-an-entire-page-s-pagesheet-to-a-newly-created-page-while-preserving-background-settings.cscopy-an-existing-hexagon-shape-to-a-new-location-on-the-same-page-using-offset-coordinates.cscopy-shapes-from-one-diagram-to-another-while-offsetting-ids-to-avoid-conflicts.cscopy-the-shape-together-with-its-paragraphs-to-another-page-named-page-3-preserving-formatting.cscount-the-number-of-shapes-on-each-page-of-a-diagram-and-generate-a-summary-report.cscreate-a-batch-job-that-disables-gluing-on-all-shapes-exceeding-a-defined-size-threshold.cscreate-a-batch-script-that-processes-all-diagrams-in-a-zip-archive-adjusting-specified-shape-sizes.cscreate-a-connector-shape-between-two-existing-shapes-automatically-selecting-the-nearest-connection-points.cscreate-a-diagnostic-tool-that-flags-connectors-lacking-explicit-line-jump-style-definitions.cscreate-a-group-containing-all-connector-shapes-and-confirm-connections-after-saving.cscreate-a-linq-query-to-select-shapes-whose-names-start-with-connector-and-adjust-their-widths.cscreate-a-macro-that-automatically-adds-a-timestamp-paragraph-to-every-new-shape-on-a-page.cscreate-a-macro-that-iterates-over-selected-shapes-and-flips-their-fill-inheritance-status.csValidation Details
dotnet build— compiled without errors against Aspose.Diagram for .NET 26.8.0dotnet run— executed without unhandled exceptionsThis PR was created automatically by the Aspose.Diagram Examples Generator Agent. Merge after reviewing the examples above.