VisioDocumentFluent
OfficeIMO.Visio
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
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
- The instance.
- value OfficeIMO.Visio.VisioPackageTheme?
- 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
- The instance.
- configure System.Action<OfficeIMO.Visio.VisioPackageTheme>
- 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
- The instance.
- configure System.Action<OfficeIMO.Visio.VisioDocumentProperties>
- 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
- The instance.
- value OfficeIMO.Visio.VisioSignatureMutationPolicy
- 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
- The instance.
- value bool = true
- 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
- The instance.
- value bool = true
- 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);