feat(visio-activex-controls): add 30 compiler-validated C# examples - Visio Activex Controls [26.8.0/net8.0] - #83
Merged
Conversation
…-a-shape-programmatically-and-initialize-its-minimum-maximum-and-value-properties Task: Add a new slider activex control to a shape programmatically and initialize its minimum maximum and value properties - 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
…ieve-and-modify-activex-controls-across-diagrams-of-varying-sizes-and-complexities Task: Benchmark the time required to retrieve and modify activex controls across diagrams of varying sizes and complexities - 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-to-its-specific-control-class-before-modifying-any-properties Task: Cast the generic activexcontrol instance to its specific control class before modifying any properties - 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
…rol-property-is-null-before-accessing-its-members Task: Check whether a shape s activexcontrol property is null before accessing its members - 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
…ing-differences-in-activex-control-property-values-across-matching-shapes Task: Compare two visio diagrams by checking differences in activex control property values across matching 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
…t-abstracts-casting-of-activexcontrol-objects-to-their-concrete-types Task: Create a reusable helper method that abstracts casting of activexcontrol objects to their concrete types - 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
…ctivex-controls-on-a-diagram-before-exporting-it-to-pdf-for-security Task: Create a script that disables all activex controls on a diagram before exporting it to pdf for security - 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
…operty-changes-on-a-retrieved-checkbox-activex-control-are-persisted-after-saving Task: Create a unit test that verifies property changes on a retrieved checkbox activex control are persisted after saving - 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-values-to-corresponding-activex-control-properties-within-a-visio-diagram Task: Deserialize json configuration and apply the values to corresponding activex control properties within a visio 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
…vex-controls-when-the-diagram-is-opened-in-read-only-mode-to-prevent-changes Task: Design a feature that disables activex controls when the diagram is opened in read only mode to prevent changes - 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
…rol-type-of-a-retrieved-object-by-inspecting-its-progid-property-value Task: Determine the concrete activex control type of a retrieved object by inspecting its progid 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
…a-commandbutton-activex-control-to-locate-associated-documentation-resources Task: Extract the helpfile property from a commandbutton activex control to locate associated documentation resources - 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
…tempting-to-cast-an-activexcontrol-to-an-incompatible-control-class-type Task: Handle invalidcastexception when attempting to cast an activexcontrol to an incompatible control class type - 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
…-modifying-read-only-properties-of-an-activex-control-and-logs-a-warning Task: Implement a safeguard that prevents modifying read only properties of an activex control and logs a warning - 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
…omexception-when-accessing-activex-control-properties-that-require-specific-permissio Task: Implement error handling to catch comexception when accessing activex control properties that require specific permissio - 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-into-an-asp-net-mvc-application-to-dynamically-update-diagram-visuals Task: Integrate activex control manipulation into an asp net mvc application to dynamically update diagram visuals - 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
…m-processing-only-those-that-contain-an-activexcontrol-object Task: Iterate over all shapes in a diagram processing only those that contain an activexcontrol object - 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
…ivex-controls-and-enumerate-all-shapes-that-embed-such-controls Task: Load a visio diagram containing activex controls and enumerate all shapes that embed such controls - 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
…stream-and-update-activex-control-properties-without-writing-to-disk Task: Load a visio diagram from a memory stream and update activex control properties without writing to disk - 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
…-activex-control-including-previous-and-new-values-for-audit-purposes Task: Log each property change made to an activex control including previous and new values 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
…f-a-button-activex-control-embedded-in-a-visio-shape Task: Read the current caption property of a button activex control embedded in a visio 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
…pe-by-setting-its-activexcontrol-property-to-null-and-saving-diagram Task: Remove an activexcontrol from a shape by setting its activexcontrol property to null and saving 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
…from-a-specific-shape-using-shape-activexcontrol-property-for-further-processing Task: Retrieve the activexcontrol object from a specific shape using shape activexcontrol property for further processing - 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-new-file-preserving-original-activex-control-configurations-and-layout Task: Save the modified visio diagram to a new file preserving original activex control configurations and layout - 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
…-activex-control-to-json-for-external-configuration-management Task: Serialize the property values of an activex control to json for external configuration management - 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
…box-activex-control-to-false-to-disable-user-interaction Task: Set the enabled property of a checkbox activex control to false to disable user interaction - 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
…e-activex-control-and-persist-the-modified-diagram-to-a-new-file Task: Update one or more properties of the activex control and persist the modified diagram to a new 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
…licly-settable-properties-of-a-specific-activex-control-class-at-runtime Task: Use reflection to enumerate all publicly settable properties of a specific activex control class at runtime - 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-slider-activex-control-remains-within-its-defined-minimum-and-maximum-range Task: Validate that the value property of a slider activex control remains within its defined minimum and maximum range - 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
…ctivex-controls-on-a-given-page-and-returns-their-count Task: Write a method that retrieves all activex controls on a given page and returns their count - 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
…API index and example table
…le catalogue for Visio Activex Controls category
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.
Visio Activex Controls — Compiler-Validated C# Examples
What this PR does
Adds 30 AI-generated, compiler-validated C# examples for the Visio Activex Controls 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
add-a-new-slider-activex-control-to-a-shape-programmatically-and-initialize-its-minimum-maximum-and-value-properties.csbenchmark-the-time-required-to-retrieve-and-modify-activex-controls-across-diagrams-of-varying-sizes-and-complexities.cscast-the-generic-activexcontrol-instance-to-its-specific-control-class-before-modifying-any-properties.cscheck-whether-a-shape-s-activexcontrol-property-is-null-before-accessing-its-members.cscompare-two-visio-diagrams-by-checking-differences-in-activex-control-property-values-across-matching-shapes.cscreate-a-reusable-helper-method-that-abstracts-casting-of-activexcontrol-objects-to-their-concrete-types.cscreate-a-script-that-disables-all-activex-controls-on-a-diagram-before-exporting-it-to-pdf-for-security.cscreate-a-unit-test-that-verifies-property-changes-on-a-retrieved-checkbox-activex-control-are-persisted-after-saving.csdeserialize-json-configuration-and-apply-the-values-to-corresponding-activex-control-properties-within-a-visio-diagram.csdesign-a-feature-that-disables-activex-controls-when-the-diagram-is-opened-in-read-only-mode-to-prevent-changes.csdetermine-the-concrete-activex-control-type-of-a-retrieved-object-by-inspecting-its-progid-property-value.csextract-the-helpfile-property-from-a-commandbutton-activex-control-to-locate-associated-documentation-resources.cshandle-invalidcastexception-when-attempting-to-cast-an-activexcontrol-to-an-incompatible-control-class-type.csimplement-a-safeguard-that-prevents-modifying-read-only-properties-of-an-activex-control-and-logs-a-warning.csimplement-error-handling-to-catch-comexception-when-accessing-activex-control-properties-that-require-specific-permissio.csintegrate-activex-control-manipulation-into-an-asp-net-mvc-application-to-dynamically-update-diagram-visuals.csiterate-over-all-shapes-in-a-diagram-processing-only-those-that-contain-an-activexcontrol-object.csload-a-visio-diagram-containing-activex-controls-and-enumerate-all-shapes-that-embed-such-controls.csload-a-visio-diagram-from-a-memory-stream-and-update-activex-control-properties-without-writing-to-disk.cslog-each-property-change-made-to-an-activex-control-including-previous-and-new-values-for-audit-purposes.csread-the-current-caption-property-of-a-button-activex-control-embedded-in-a-visio-shape.csremove-an-activexcontrol-from-a-shape-by-setting-its-activexcontrol-property-to-null-and-saving-diagram.csretrieve-the-activexcontrol-object-from-a-specific-shape-using-shape-activexcontrol-property-for-further-processing.cssave-the-modified-visio-diagram-to-a-new-file-preserving-original-activex-control-configurations-and-layout.csserialize-the-property-values-of-an-activex-control-to-json-for-external-configuration-management.csset-the-enabled-property-of-a-checkbox-activex-control-to-false-to-disable-user-interaction.csupdate-one-or-more-properties-of-the-activex-control-and-persist-the-modified-diagram-to-a-new-file.csuse-reflection-to-enumerate-all-publicly-settable-properties-of-a-specific-activex-control-class-at-runtime.csvalidate-that-the-value-property-of-a-slider-activex-control-remains-within-its-defined-minimum-and-maximum-range.cswrite-a-method-that-retrieves-all-activex-controls-on-a-given-page-and-returns-their-count.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.