API Reference
VisioStencilShape
Describes an OfficeIMO-native stencil shape that can be generated without depending on a VSDX/VSSX template.
Inheritance
- Object
- VisioStencilShape
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method VisioStencilCatalog.FindBest
- Method VisioStencilCatalog.Get
- Method VisioStencilCatalog.InCategory
- Method VisioStencilCatalog.Search
- Property VisioStencilCatalog.Shapes
- Property VisioStencilCatalogBuilder.Shapes
Accepted by parameters
- Method VisioGraphDiagramBuilder.StencilNode
- Method VisioFluentPage.Stencil
- Method VisioFluentPage.Stencil
- Constructor VisioStencilCatalog.VisioStencilCatalog
- Method VisioStencilCatalog.TryFindBest
- Method VisioStencilCatalog.TryGet
- Method VisioStencilCatalogBuilder.Add
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioStencilPageExtensions.AddStencilShape
- Method VisioDocument.ImportStencilMasters
- Method VisioDocument.ImportStencilMastersAndGet
- Method VisioMasterEditingExtensions.ReplaceMaster
- Method VisioMasterEditingExtensions.ReplaceMaster
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
- Extension method VisioPage.AddStencilShape
Constructors
public VisioStencilShape(String id, String name, String masterNameU, String category, Double defaultWidth, Double defaultHeight, IEnumerable<String> keywords = null, IEnumerable<String> aliases = null, IEnumerable<String> tags = null, String iconNameU = null) #Initializes a new stencil shape definition.
Parameters
- id System.String
- name System.String
- masterNameU System.String
- category System.String
- defaultWidth System.Double
- defaultHeight System.Double
- keywords System.Collections.Generic.IEnumerable{System.String} = null
- aliases System.Collections.Generic.IEnumerable{System.String} = null
- tags System.Collections.Generic.IEnumerable{System.String} = null
- iconNameU System.String = null
public VisioStencilShape(String id, String name, String masterNameU, String category, Double defaultWidth, Double defaultHeight, IEnumerable<String> keywords, IEnumerable<String> aliases, IEnumerable<String> tags, String iconNameU, Nullable<VisioMeasurementUnit> defaultUnit) #Initializes a new stencil shape definition with an explicit default-size unit.
Parameters
- id System.String
- name System.String
- masterNameU System.String
- category System.String
- defaultWidth System.Double
- defaultHeight System.Double
- keywords System.Collections.Generic.IEnumerable{System.String}
- aliases System.Collections.Generic.IEnumerable{System.String}
- tags System.Collections.Generic.IEnumerable{System.String}
- iconNameU System.String
- defaultUnit System.Nullable{OfficeIMO.Visio.VisioMeasurementUnit}
public VisioStencilShape(String id, String name, String masterNameU, String category, Double defaultWidth, Double defaultHeight, IEnumerable<String> keywords, IEnumerable<String> aliases, IEnumerable<String> tags, String iconNameU, Nullable<VisioMeasurementUnit> defaultUnit, String sourcePackagePath) #Initializes a new stencil shape definition with source package metadata.
Parameters
- id System.String
- name System.String
- masterNameU System.String
- category System.String
- defaultWidth System.Double
- defaultHeight System.Double
- keywords System.Collections.Generic.IEnumerable{System.String}
- aliases System.Collections.Generic.IEnumerable{System.String}
- tags System.Collections.Generic.IEnumerable{System.String}
- iconNameU System.String
- defaultUnit System.Nullable{OfficeIMO.Visio.VisioMeasurementUnit}
- sourcePackagePath System.String
Inherited Methods
Properties
public String Id { get; } #Gets a stable OfficeIMO stencil identifier.
public String MasterNameU { get; } #Gets the generated master universal name used by OfficeIMO.
public String Category { get; } #Gets the category name.
public Double DefaultWidth { get; } #Gets the default shape width in the caller's placement unit.
public Double DefaultHeight { get; } #Gets the default shape height in the caller's placement unit.
public Nullable<VisioMeasurementUnit> DefaultUnit { get; } #Gets the unit used by the default size, when it is fixed by the source catalog. When null, default sizes are interpreted in the caller's placement unit.
public String SourcePackagePath { get; } #Gets the source `.vssx`, `.vstx`, or `.vsdx` package path when this shape was cataloged from a package.
public IReadOnlyList<String> Keywords { get; } #Gets searchable keywords.
public IReadOnlyList<String> Aliases { get; } #Gets alternate lookup names.
public IReadOnlyList<String> Tags { get; } #Gets semantic tags used by stencil catalog search.
public String IconNameU { get; } #Gets the generated master universal name that can be used as this stencil shape's preview icon.