# VisioStencilGalleryOptions

Layout and visual options for rendering a stencil catalog as a browsable Visio page gallery.

Class 

`OfficeIMO.Visio.Stencils`

**Namespace**

`OfficeIMO.Visio.Stencils`

**Assembly**

`OfficeIMO.Visio`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[VisioStencilGalleryOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L16)

**Modifiers**

sealed

Layout and visual options for rendering a stencil catalog as a browsable Visio page gallery.

## Inheritance

- object
- VisioStencilGalleryOptions

## Usage

Explore 2 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 2

- Method [VisioStencilGalleryExtensions.AddStencilGallery](/api/visio/officeimo-visio-stencils-visiostencilgalleryextensions/#method-addstencilgallery-officeimo-visio-visiopage-officeimo-visio-stencils-visiostencilcatalog-officeimo-visio-stencils-visiostencilgalleryoptions) parameter `options`
- Extension method [VisioPage.AddStencilGallery](/api/visio/officeimo-visio-visiopage/#extension-addstencilgallery-officeimo-visio-visiopage-officeimo-visio-stencils-visiostencilcatalog-officeimo-visio-stencils-visiostencilgalleryoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[VisioStencilGalleryOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L16)

## 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? Title { get; set; }` [#](#property-title)

[VisioStencilGalleryOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L11)

Gets or sets the gallery title. When null, the catalog name is used.

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

[VisioStencilGalleryOptions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L16)

Gets or sets the shape id prefix used for generated gallery elements.

`public int MaxShapes { get; set; }` [#](#property-maxshapes)

[VisioStencilGalleryOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L21)

Gets or sets the maximum number of shapes to render.

`public int Columns { get; set; }` [#](#property-columns)

[VisioStencilGalleryOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L26)

Gets or sets the number of columns in the gallery grid.

`public double Left { get; set; }` [#](#property-left)

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

Gets or sets the left page margin in inches.

`public double Top { get; set; }` [#](#property-top)

[VisioStencilGalleryOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L36)

Gets or sets the top page margin in inches.

`public double ColumnGap { get; set; }` [#](#property-columngap)

[VisioStencilGalleryOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L41)

Gets or sets the horizontal gap between gallery cells in inches.

`public double RowGap { get; set; }` [#](#property-rowgap)

[VisioStencilGalleryOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L46)

Gets or sets the vertical gap between gallery cells in inches.

`public double CellWidth { get; set; }` [#](#property-cellwidth)

[VisioStencilGalleryOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L51)

Gets or sets the width of each gallery cell in inches.

`public double CellHeight { get; set; }` [#](#property-cellheight)

[VisioStencilGalleryOptions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L56)

Gets or sets the height of each gallery cell in inches.

`public double IconMaxWidth { get; set; }` [#](#property-iconmaxwidth)

[VisioStencilGalleryOptions.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L61)

Gets or sets the maximum icon width inside a gallery cell in inches.

`public double IconMaxHeight { get; set; }` [#](#property-iconmaxheight)

[VisioStencilGalleryOptions.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L66)

Gets or sets the maximum icon height inside a gallery cell in inches.

`public bool AutoResizePage { get; set; }` [#](#property-autoresizepage)

[VisioStencilGalleryOptions.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L71)

Gets or sets whether the page should grow to fit the requested gallery grid.

`public bool ShowCategory { get; set; }` [#](#property-showcategory)

[VisioStencilGalleryOptions.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L76)

Gets or sets whether category labels should be shown in each gallery cell.

`public bool IncludeStencilMetadataShapeData { get; set; }` [#](#property-includestencilmetadatashapedata)

[VisioStencilGalleryOptions.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L81)

Gets or sets whether each placed stencil preview should receive visible Shape Data rows for catalog review.

`public OfficeColor TitleColor { get; set; }` [#](#property-titlecolor)

[VisioStencilGalleryOptions.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L86)

Gets or sets the title text color.

`public OfficeColor CellFillColor { get; set; }` [#](#property-cellfillcolor)

[VisioStencilGalleryOptions.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L91)

Gets or sets the gallery cell fill color.

`public OfficeColor CellBorderColor { get; set; }` [#](#property-cellbordercolor)

[VisioStencilGalleryOptions.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Visio/Stencils/VisioStencilGalleryOptions.cs#L96)

Gets or sets the gallery cell border color.

<!-- PowerForge markdown artifact sha256:1B2B2DAF72C80AF4BD75B7C2EB6156AD25E7EA5683207A2A60FD935AD320D61B -->
