Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

VisioDocumentFluent

OfficeIMO.Visio

Namespace
OfficeIMO.Visio
Assembly
OfficeIMO.Visio
Modifiers
static

The fluent methods of VisioDocument, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • VisioDocumentFluent

Methods

PackageTheme``1 2 overloads
public static TSelf PackageTheme<TSelf>(TSelf visioDocument, VisioPackageTheme? value) #

Sets VisioDocument.PackageTheme: Gets or sets package-level theme metadata preserved in the document.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
value OfficeIMO.Visio.VisioPackageTheme? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Visio.VisioDocument { PackageTheme = value };    visioDocument.PackageTheme(value);
public static TSelf PackageTheme<TSelf>(TSelf visioDocument, Action<VisioPackageTheme> configure) #

Configures VisioDocument.PackageTheme in place (creating it when not set): Gets or sets package-level theme metadata preserved in the document.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioPackageTheme> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Properties<TSelf>(TSelf visioDocument, Action<VisioDocumentProperties> configure) #

Configures VisioDocument.Properties in place: Standard package properties stored in docProps/core.xml.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
configure System.Action<OfficeIMO.Visio.VisioDocumentProperties> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf SignatureMutationPolicy<TSelf>(TSelf visioDocument, VisioSignatureMutationPolicy value) #

Sets VisioDocument.SignatureMutationPolicy: Gets or sets the policy applied before a loaded signed VSDX package is rebuilt. The safe default blocks the save.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
value OfficeIMO.Visio.VisioSignatureMutationPolicy required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Visio.VisioDocument { SignatureMutationPolicy = value };    visioDocument.SignatureMutationPolicy(value);
public static TSelf UseMastersByDefault<TSelf>(TSelf visioDocument, bool value = true) #

Sets VisioDocument.UseMastersByDefault: When true, shapes with a known VisioShape.NameU (e.g. "Rectangle") are automatically backed by a document master if none is assigned explicitly. Defaults to false to preserve current library behavior. Set to true to align with native Visio authoring semantics and asset templates.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Visio.VisioDocument { UseMastersByDefault = value };    visioDocument.UseMastersByDefault(value);
public static TSelf WriteMasterDeltasOnly<TSelf>(TSelf visioDocument, bool value = true) #

Sets VisioDocument.WriteMasterDeltasOnly: When writing page shapes that reference a master, emit only delta cells required for the page instance (e.g., PinX/PinY and minimal style hints) instead of a full XForm block. This better matches Visio-authored files and the provided assets. Defaults to true.

Type Parameters

TSelf

Parameters

visioDocument TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Visio.VisioDocument { WriteMasterDeltasOnly = value };    visioDocument.WriteMasterDeltasOnly(value);