agentleFS
aspose-diagramaspose-diagram/agentic-net-examples/page-setup-features/agents.md

agentic-net-examples / page-setup-features

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

AI-generated, compiler-validated C# examples for the Aspose.Diagram for .NET API — Page Setup Features category. You are a C# developer specializing in Visio diagram processing using Aspose.Diagram for .NET. You are working in the Page Setup Features category. Your task is to write clean, compilable C# console examples that demonstrate Aspose.Diagram API usage for page setup features 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

11 rules. About 0 are common, 1 is distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    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. Very specific:

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

    line 264
  11. Very specific:

    Always check rules/rules.json for the latest API correction rules

    line 269

≈ “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

Page Setup Features

AI-generated, compiler-validated C# examples for the Aspose.Diagram for .NET API — Page Setup Features category.

Statistics

MetricValue
Examples82
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 Page Setup Features category. Your task is to write clean, compilable C# console examples that demonstrate Aspose.Diagram API usage for page setup features 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
System82Console, Math, DateTime, Exception
Aspose.Diagram81Core diagram API
System.IO65File, Stream, Path, Directory operations
Aspose.Diagram.Saving29Save options (PDF, PNG, HTML, SVG, XPS)
Aspose.Diagram.Printing20Supporting utilities
System.Collections.Generic10List, Dictionary, HashSet
System.Text.Json5JSON serialization
System.Linq2LINQ queries on collections
Aspose.Diagram.AutoLayout1Supporting utilities
System.Threading1Supporting utilities
System.Text1StringBuilder
System.Data1Supporting utilities
System.Data.Common1Supporting utilities
System.Reflection1Supporting 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);
    }
}

Examples

FileKey APIsTask
access-the-pageprops-of-the-selected-page-to-read-its-pageheight-property.csDiagram, Pages, diagramAccess the pageprops of the selected page to read its pageheight property
access-the-pageprops-of-the-selected-page-to-read-its-pagewidth-property.csDiagram, Pages, diagramAccess the pageprops of the selected page to read its pagewidth property
adjust-line-thickness-of-connectors-proportionally-to-page-height-for-consistent-visual-weight.csDiagram, Pages, SaveAdjust line thickness of connectors proportionally to page height for consistent visual weight
adjust-printprops-scalex-to-0-75-to-reduce-the-page-size-by-twenty-five-percent.csDiagram, Pages, SaveAdjust printprops scalex to 0 75 to reduce the page size by twenty five percent
adjust-shape-rotation-angles-based-on-page-height-to-maintain-visual-balance-across-pages.csDiagram, Pages, SaveAdjust shape rotation angles based on page height to maintain visual balance across pages
after-modifying-print-settings-invoke-diagram-save-with-a-different-file-extension-to-preserve-the-original-file.csDiagram, Pages, SaveAfter modifying print settings invoke diagram save with a different file extension to preserve the original file
apply-a-conditional-layout-algorithm-that-changes-behavior-when-page-width-exceeds-11-inches.csDiagram, Layout, LayoutOptionsApply a conditional layout algorithm that changes behavior when page width exceeds 11 inches
apply-different-scalex-values-to-odd-numbered-pages-while-keeping-even-pages-at-default-size.csDiagram, Pages, SaveApply different scalex values to odd numbered pages while keeping even pages at default size
apply-portrait-orientation-and-a-scalex-of-1-2-to-improve-readability-of-detailed-diagrams.csDiagram, Pages, SaveApply portrait orientation and a scalex of 1 2 to improve readability of detailed diagrams
apply-the-calculated-scaling-factor-to-all-shape-coordinates-on-the-selected-page.csDiagram, Pages, SaveApply the calculated scaling factor to all shape coordinates on the selected page
batch-process-all-pages-collecting-their-widths-into-a-list-for-subsequent-analysis.csDiagram, Pages, diagramBatch process all pages collecting their widths into a list for subsequent analysis
calculate-a-scaling-factor-based-on-page-width-to-fit-diagram-content-within-an-800-pixel-canvas.csDiagram, Pages, diagramCalculate a scaling factor based on page width to fit diagram content within an 800 pixel canvas
catch-argumentexception-when-assigning-an-undefined-value-to-printpageorientation-and-log-the-error.csDiagram, Pages, SaveCatch argumentexception when assigning an undefined value to printpageorientation and log the error
change-printprops-printpageorientation-to-portrait-on-all-pages-to-enforce-vertical-orientation.csDiagram, Pages, SaveChange printprops printpageorientation to portrait on all pages to enforce vertical orientation
combine-landscape-orientation-with-a-scalex-of-0-9-to-create-a-custom-print-layout.csDiagram, Pages, SaveCombine landscape orientation with a scalex of 0 9 to create a custom print layout
compare-page-dimensions-across-two-visio-files-to-detect-layout-inconsistencies.csDiagramCompare page dimensions across two visio files to detect layout inconsistencies
compare-printed-output-dimensions-when-scalex-is-set-to-1-0-versus-0-5-for-the-same-page.csDiagram, Pages, diagramCompare printed output dimensions when scalex is set to 1 0 versus 0 5 for the same page
compare-the-page-height-against-a-predefined-maximum-and-raise-an-exception-if-exceeded.csDiagram, Pages, diagramCompare the page height against a predefined maximum and raise an exception if exceeded
convert-retrieved-page-dimensions-from-inches-to-millimeters-before-storing-them-in-metadata.csDiagram, Pages, SaveConvert retrieved page dimensions from inches to millimeters before storing them in metadata
create-a-batch-job-that-processes-visio-files-nightly-applying-standardized-print-settings-for-corporate-reports.csDiagram, Pages, PdfSaveOptionsCreate a batch job that processes visio files nightly applying standardized print settings for corporate reports
create-a-configuration-file-that-maps-page-indices-to-specific-orientation-and-scaling-values.csDiagram, Pages, diagramCreate a configuration file that maps page indices to specific orientation and scaling values
create-a-custom-export-function-that-embeds-page-dimension-metadata-into-the-output-file-header.csDiagram, Pages, SaveCreate a custom export function that embeds page dimension metadata into the output file header
create-a-diagnostic-routine-that-checks-whether-printprops-printpageorientation-matches-the-expected-enumeration-value.csDiagram, Pages, diagramCreate a diagnostic routine that checks whether printprops printpageorientation matches the expected enumeration value
create-a-dictionary-mapping-page-names-to-their-corresponding-dimensions-for-quick-lookup.csDiagram, Pages, diagramCreate a dictionary mapping page names to their corresponding dimensions for quick lookup
create-a-macro-that-automatically-updates-page-margins-based-on-retrieved-page-dimensions.csDiagram, Pages, SaveCreate a macro that automatically updates page margins based on retrieved page dimensions
create-a-reusable-service-that-applies-default-print-settings-to-any-diagram-instance-passed-to-it.csDiagram, Pages, SaveCreate a reusable service that applies default print settings to any diagram instance passed to it
create-a-scheduled-task-that-reprocesses-diagrams-weekly-ensuring-print-settings-comply-with-new-corporate-standards.csDiagram, Pages, SaveCreate a scheduled task that reprocesses diagrams weekly ensuring print settings comply with new corporate standards
create-a-utility-method-that-sets-orientation-and-scaling-based-on-user-provided-parameters.csDiagram, Pages, SaveCreate a utility method that sets orientation and scaling based on user provided parameters
deserialize-previously-saved-json-page-dimensions-and-compare-them-with-current-diagram-values.csDiagram, Pages, diagramDeserialize previously saved json page dimensions and compare them with current diagram values
document-best-practices-for-configuring-page-orientation-and-scaling-to-achieve-optimal-print-quality-across-printers.csDiagram, Pages, PdfSaveOptionsDocument best practices for configuring page orientation and scaling to achieve optimal print quality across printers
export-the-diagram-to-pdf-while-preserving-the-original-page-dimensions-retrieved-earlier.csDiagram, Pages, PdfSaveOptionsExport the diagram to pdf while preserving the original page dimensions retrieved earlier
generate-a-csv-file-summarizing-page-indices-orientation-and-scaling-factors-for-audit-purposes.csDiagram, Pages, SaveGenerate a csv file summarizing page indices orientation and scaling factors for audit purposes
generate-a-report-listing-each-page-s-current-printprops-orientation-and-scalex-values-after-modification.csDiagram, Pages, SaveGenerate a report listing each page s current printprops orientation and scalex values after modification
generate-a-report-summarizing-page-dimensions-and-total-diagram-area-in-square-centimeters.csDiagram, Pages, diagramGenerate a report summarizing page dimensions and total diagram area in square centimeters
generate-a-thumbnail-image-for-each-page-using-its-width-and-height-to-define-canvas-size.csDiagram, ImageSaveOptions, PagesGenerate a thumbnail image for each page using its width and height to define canvas size
implement-a-caching-mechanism-that-stores-page-size-values-to-avoid-repeated-property-accesses.csDiagram, Pages, SaveImplement a caching mechanism that stores page size values to avoid repeated property accesses
implement-a-fallback-to-portrait-orientation-if-landscape-assignment-fails-due-to-file-corruption.csDiagram, Pages, SaveImplement a fallback to portrait orientation if landscape assignment fails due to file corruption
implement-a-feature-that-logs-the-previous-orientation-before-changing-it-enabling-audit-trails.csDiagram, Pages, SaveImplement a feature that logs the previous orientation before changing it enabling audit trails
implement-a-feature-that-resets-all-pages-to-default-portrait-orientation-and-scalex-of-1-0.csDiagram, Pages, SaveImplement a feature that resets all pages to default portrait orientation and scalex of 1 0
implement-a-rollback-strategy-that-restores-original-printprops-if-any-validation-step-fails-after-changes.csDiagram, Pages, SaveImplement a rollback strategy that restores original printprops if any validation step fails after changes
implement-batch-processing-to-apply-landscape-orientation-to-all-pages-in-a-folder-of-visio-files.csDiagram, Pages, SaveImplement batch processing to apply landscape orientation to all pages in a folder of visio files
implement-error-handling-that-catches-exceptions-when-pageprops-properties-are-inaccessible.csDiagram, Pages, SaveImplement error handling that catches exceptions when pageprops properties are inaccessible
implement-error-handling-to-skip-pages-lacking-a-pagesheet-when-applying-print-settings.csDiagram, Pages, SaveImplement error handling to skip pages lacking a pagesheet when applying print settings
increase-printprops-scalex-to-1-5-for-a-diagram-page-to-enlarge-its-printed-output.csDiagram, Pages, SaveIncrease printprops scalex to 1 5 for a diagram page to enlarge its printed output
instantiate-the-diagram-object-with-a-visio-file-and-select-the-first-page.csDiagram, Pages, diagramInstantiate the diagram object with a visio file and select the first page
integrate-page-size-data-into-a-printing-routine-that-sets-printer-margins-dynamically.csDiagram, Pages, PdfSaveOptionsIntegrate page size data into a printing routine that sets printer margins dynamically
iterate-through-diagram-pages-and-log-each-page-s-width-and-height-to-a-csv-file.csDiagram, Pages, diagramIterate through diagram pages and log each page s width and height to a csv file
iterate-through-each-page-in-the-diagram-and-retrieve-its-associated-pagesheet-for-configuration.csPages, Save, diagramIterate through each page in the diagram and retrieve its associated pagesheet for configuration
load-a-visio-file-into-a-diagram-object-and-access-its-pages-collection.csDiagram, Pages, diagramLoad a visio file into a diagram object and access its pages collection
load-configuration-from-json-and-apply-mapped-print-settings-to-corresponding-diagram-pages.csDiagram, Pages, SaveLoad configuration from json and apply mapped print settings to corresponding diagram pages
log-the-original-and-updated-printprops-values-for-each-page-during-batch-modification.csDiagram, Pages, SaveLog the original and updated printprops values for each page during batch modification
log-the-page-width-and-height-to-the-console-using-a-formatted-string.csDiagram, Pages, diagramLog the page width and height to the console using a formatted string
programmatically-toggle-between-portrait-and-landscape-orientations-based-on-page-content-analysis.csDiagram, Pages, SaveProgrammatically toggle between portrait and landscape orientations based on page content analysis
save-the-modified-diagram-to-a-new-visio-file-after-updating-page-print-settings.csDiagram, Pages, SaveSave the modified diagram to a new visio file after updating page print settings
serialize-the-collected-page-size-information-to-json-for-consumption-by-a-web-service.csDiagram, Pages, diagramSerialize the collected page size information to json for consumption by a web service
set-printprops-printpageorientation-to-landscape-on-a-specific-page-to-change-its-layout.csDiagram, Pages, SaveSet printprops printpageorientation to landscape on a specific page to change its layout
store-page-dimensions-in-a-relational-database-table-for-historical-tracking-of-diagram-revisions.csDiagram, Pages, diagramStore page dimensions in a relational database table for historical tracking of diagram revisions
store-the-retrieved-width-and-height-values-in-a-custom-pagesize-structure-for-later-use.csDiagram, Pages, diagramStore the retrieved width and height values in a custom pagesize structure for later use
use-a-configuration-manager-to-retrieve-default-orientation-and-scaling-values-from-application-settings.csDiagram, Pages, SaveUse a configuration manager to retrieve default orientation and scaling values from application settings
use-a-try-catch-block-to-handle-unsupported-orientation-values-while-processing-multiple-pages.csDiagram, Pages, SaveUse a try catch block to handle unsupported orientation values while processing multiple pages
use-diagram-clone-to-create-a-backup-before-applying-bulk-orientation-updates.csDiagram, Pages, SaveUse diagram clone to create a backup before applying bulk orientation updates
use-diagram-dispose-after-saving-to-release-resources-and-avoid-memory-leaks.csDiagram, Save, diagramUse diagram dispose after saving to release resources and avoid memory leaks
use-linq-to-filter-pages-where-scalex-exceeds-1-0-before-applying-additional-transformations.csDiagram, Pages, SaveUse linq to filter pages where scalex exceeds 1 0 before applying additional transformations
use-page-height-to-set-vertical-spacing-between-automatically-generated-legend-sections.csAddShape, Diagram, PagesUse page height to set vertical spacing between automatically generated legend sections
use-page-width-to-calculate-appropriate-font-size-for-page-level-titles-in-generated-pdfs.csDiagram, Pages, PdfSaveOptionsUse page width to calculate appropriate font size for page level titles in generated pdfs
use-page-width-to-compute-column-count-for-a-grid-layout-applied-to-diagram-shapes.csDiagram, Pages, SaveUse page width to compute column count for a grid layout applied to diagram shapes
use-reflection-to-enumerate-all-printpageorientationvalue-enumeration-members-for-dynamic-ui-generation.csUse reflection to enumerate all printpageorientationvalue enumeration members for dynamic ui generation
use-the-diagram-constructor-overload-that-accepts-a-stream-to-load-diagrams-from-memory.csDiagram, Save, diagramUse the diagram constructor overload that accepts a stream to load diagrams from memory
use-the-page-height-to-determine-vertical-offset-when-adding-a-custom-footer-to-each-page.csDiagram, Pages, SaveUse the page height to determine vertical offset when adding a custom footer to each page
validate-each-page-s-printprops-settings-match-expected-orientation-and-scaling-before-printing.csDiagram, Pages, diagramValidate each page s printprops settings match expected orientation and scaling before printing
validate-that-after-saving-the-visio-file-retains-the-modified-printprops-when-reopened.csDiagram, Pages, SaveValidate that after saving the visio file retains the modified printprops when reopened
validate-that-page-dimensions-conform-to-iso-216-standards-before-proceeding-with-batch-export.csDiagram, Pages, PdfSaveOptionsValidate that page dimensions conform to iso 216 standards before proceeding with batch export
validate-that-setting-scalex-to-1-0-after-previous-scaling-resets-the-page-to-its-original-size.csDiagram, Pages, SaveValidate that setting scalex to 1 0 after previous scaling resets the page to its original size
validate-that-the-retrieved-page-width-matches-the-expected-a4-size-in-inches.csDiagram, Pages, diagramValidate that the retrieved page width matches the expected a4 size in inches
verify-that-saving-the-diagram-after-print-option-changes-does-not-alter-other-page-content.csDiagram, Pages, SaveVerify that saving the diagram after print option changes does not alter other page content
write-a-console-output-that-lists-pages-where-scalex-is-not-equal-to-1-0-after-processing.csDiagram, Pages, diagramWrite a console output that lists pages where scalex is not equal to 1 0 after processing
write-a-helper-function-that-checks-if-a-page-s-current-scalex-matches-the-desired-target-within-tolerance.csWrite a helper function that checks if a page s current scalex matches the desired target within tolerance
write-a-sample-program-demonstrating-switching-between-portrait-and-landscape-orientations-based-on-user-input.csDiagram, Pages, SaveWrite a sample program demonstrating switching between portrait and landscape orientations based on user input
write-a-script-that-reads-a-list-of-visio-files-and-applies-uniform-landscape-orientation-to-each.csDiagram, Pages, SaveWrite a script that reads a list of visio files and applies uniform landscape orientation to each
write-code-to-enumerate-all-pages-outputting-their-index-orientation-and-scalex-to-the-console.csDiagram, Pages, diagramWrite code to enumerate all pages outputting their index orientation and scalex to the console
write-unit-tests-verifying-pageheight-returns-correct-value-for-a-known-sample-file.csDiagram, Pages, diagramWrite unit tests verifying pageheight returns correct value for a known sample file
write-unit-tests-verifying-pagewidth-returns-correct-value-for-a-known-sample-file.csDiagram, Pages, diagramWrite unit tests verifying pagewidth returns correct value for a known sample file

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

  • AddShape
  • Diagram
  • ImageSaveOptions
  • Layout
  • LayoutOptions
  • Pages
  • PdfSaveOptions
  • Save
  • Shapes
  • diagram
  • page

Real-World Use Cases

Common scenarios where Aspose.Diagram for .NET page setup features capabilities are applied in production applications:

  • Configuring page size and orientation for print-ready diagrams
  • Setting margins and scaling for large format printing
  • Standardizing page setup across all pages in multi-page documents

Developer Q&A

Frequently asked questions about Page Setup Features in Aspose.Diagram for .NET:

Q: How do I get started with Page Setup Features 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.

Related Categories

Category Statistics

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

Failed Tasks

All tasks passed ✅


Updated: 2026-09-24 | Examples: 82 | 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.