# VisioStencilPackageLoadOptions

Options for creating an OfficeIMO-native stencil catalog from a Visio package.

Class 

`OfficeIMO.Visio.Stencils`

**Namespace**

`OfficeIMO.Visio.Stencils`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioStencilPackageLoadOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L48)

**Modifiers**

sealed

Options for creating an OfficeIMO-native stencil catalog from a Visio package.

## Inheritance

- object
- VisioStencilPackageLoadOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Use Visio Stencils and Shape Catalogs](/docs/visio/stencils-and-catalogs/) Guide
  
  Place shapes from OfficeIMO's built-in catalogs or from VSSX and VSTX stencil packs you supply, and keep the link to each shape's master.

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 6

- Method [VisioStencilPackageCatalog.CreatePreviewGallery](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-createpreviewgallery-string-string-officeimo-visio-stencils-visiostencilpackageloadoptions-officeimo-visio-stencils-visiostencilpreviewgalleryoptions) parameter `options`
- Method [VisioStencilPackageCatalog.ExtractPreviewImages](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-extractpreviewimages-string-officeimo-visio-stencils-visiostencilpackageloadoptions) parameter `options`
- Method [VisioStencilPackageCatalog.ExtractPreviewImagesToDirectory](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-extractpreviewimagestodirectory-string-string-officeimo-visio-stencils-visiostencilpackageloadoptions) parameter `options`
- Method [VisioStencilPackageCatalog.Load](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-load-string-officeimo-visio-stencils-visiostencilpackageloadoptions) parameter `options`
- Method [VisioStencilPackageCatalog.LoadDirectory](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-loaddirectory-string-officeimo-visio-stencils-visiostencilpackageloadoptions-boolean) parameter `options`
- Method [VisioStencilPackageCatalog.LoadMany](/api/visio/officeimo-visio-stencils-visiostencilpackagecatalog/#method-loadmany-collections-generic-ienumerable-system-string-officeimo-visio-stencils-visiostencilpackageloadoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public VisioStencilPackageLoadOptions()` [#](#constructor-ctor)

[VisioStencilPackageLoadOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L48)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? CatalogName { get; set; }` [#](#property-catalogname)

[VisioStencilPackageLoadOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L9)

Gets or sets the catalog display name. Defaults to the package file name.

`public string? Category { get; set; }` [#](#property-category)

[VisioStencilPackageLoadOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L14)

Gets or sets the category assigned to loaded stencil shapes. Defaults to the catalog name.

`public string? IdPrefix { get; set; }` [#](#property-idprefix)

[VisioStencilPackageLoadOptions.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L19)

Gets or sets a stable id prefix. Defaults to the normalized package file name.

`public IEnumerable<string>? MasterNames { get; set; }` [#](#property-masternames)

[VisioStencilPackageLoadOptions.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L25)

Gets or sets optional master filters. Values may match the master NameU, display name, relationship id, numeric id, or normalized slug.

`public bool IncludeUnsupportedMasters { get; set; }` [#](#property-includeunsupportedmasters)

[VisioStencilPackageLoadOptions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L31)

Gets or sets whether unsupported masters should be included as generic generated masters. Defaults to false so package loading remains a learning/catalog step, not template ingestion.

`public string? SourceLicense { get; set; }` [#](#property-sourcelicense)

[VisioStencilPackageLoadOptions.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L37)

Gets or sets the source package license identifier or license notice. OfficeIMO records this caller-supplied value but does not infer licensing terms.

`public string? SourceAttribution { get; set; }` [#](#property-sourceattribution)

[VisioStencilPackageLoadOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L42)

Gets or sets source attribution that must travel with catalog manifests.

`public bool LearnMasterDimensions { get; set; }` [#](#property-learnmasterdimensions)

[VisioStencilPackageLoadOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L48)

Gets or sets whether default stencil sizes should be learned from master shape dimensions when package master parts are available. Defaults to true.

`public bool ExtractPreviewImageMetadata { get; set; }` [#](#property-extractpreviewimagemetadata)

[VisioStencilPackageLoadOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L54)

Gets or sets whether preview/icon image relationship metadata should be learned from master parts when available. Defaults to true.

`public bool ExtractConnectionPointMetadata { get; set; }` [#](#property-extractconnectionpointmetadata)

[VisioStencilPackageLoadOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L60)

Gets or sets whether native master connection points should be learned from master parts when available. Defaults to true.

`public double DefaultWidth { get; set; }` [#](#property-defaultwidth)

[VisioStencilPackageLoadOptions.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L65)

Gets or sets the default stencil width in the caller's placement unit.

`public double DefaultHeight { get; set; }` [#](#property-defaultheight)

[VisioStencilPackageLoadOptions.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilPackageLoadOptions.cs#L70)

Gets or sets the default stencil height in the caller's placement unit.

<!-- PowerForge markdown artifact sha256:9DCBF7E83D4D08AC04ECC8C77C3CD989D1E1F1DA7A3A2C2FC06213FBF81AE950 -->
