Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VsdxPackageValidator

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Source revision
0eef6a5756b9 with working tree changes

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

Inheritance

  • object
  • VsdxPackageValidator

Constructors

VsdxPackageValidator 2 overloads
public VsdxPackageValidator() #

Creates a validator with default resource limits.

public VsdxPackageValidator(VsdxPackageValidationLimits? limits) #

Creates a validator with caller-supplied resource limits.

Parameters

limits OfficeIMO.Visio.VsdxPackageValidationLimits? required
Limits to snapshot for this validator instance.

Methods

public bool FixFile(string inputPath, string outputPath) #

Validates and fixes the specified VSDX file.

Parameters

inputPath string required
Path to the input VSDX file.
outputPath string required
Path where the fixed file will be saved.

Returns

bool true if the file was fixed successfully; otherwise, false.
public bool FixFileStreaming(string inputPath, string outputPath) #

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

Parameters

inputPath string required
outputPath string required

Returns

bool
public bool ValidateFile(string inputPath) #

Validates the specified VSDX file.

Parameters

inputPath string required
Path to the input VSDX file.

Returns

bool true if no errors were found; otherwise, false.
public bool ValidateFileStreaming(string inputPath) #

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

Parameters

inputPath string required

Returns

bool

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.