OfficeIMO

API Reference

Class

VsdxPackageValidator

Namespace OfficeIMO.Visio
Assembly OfficeIMO.Visio

Validates and optionally fixes Visio VSDX packages for common structural issues.

Inheritance

  • Object
  • VsdxPackageValidator

Constructors

public VsdxPackageValidator() #

Methods

public Boolean FixFile(String inputPath, String outputPath) #
Returns: Boolean

Validates and fixes the specified VSDX file.

Parameters

inputPath System.String requiredposition: 0
Path to the input VSDX file.
outputPath System.String requiredposition: 1
Path where the fixed file will be saved.

Returns

true if the file was fixed successfully; otherwise, false.

public Boolean FixFileStreaming(String inputPath, String outputPath) #
Returns: Boolean

Streaming fix: writes a new VSDX with corrected [Content_Types].xml and minimal relationships for document and pages.

Parameters

inputPath System.String requiredposition: 0
outputPath System.String requiredposition: 1
public Boolean ValidateFile(String inputPath) #
Returns: Boolean

Validates the specified VSDX file.

Parameters

inputPath System.String requiredposition: 0
Path to the input VSDX file.

Returns

true if no errors were found; otherwise, false.

public Boolean ValidateFileStreaming(String inputPath) #
Returns: Boolean

Streaming (no-extract) validation prototype. Phase 1: content types and relationships; Phase 2: basic pages structure.

Parameters

inputPath System.String requiredposition: 0

Properties

public IReadOnlyList<String> Errors { get; } #

Gets the list of validation errors.

public IReadOnlyList<String> Warnings { get; } #

Gets the list of warnings encountered during validation.

public IReadOnlyList<String> Fixes { get; } #

Gets the list of fixes applied when running in fix mode.