VisioStencilPreviewImageData
OfficeIMO.Visio.Stencils
Embedded preview/icon image payload extracted from a package-backed stencil master.
Inheritance
- object
- VisioStencilPreviewImageData
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.
Returned or exposed by 2
Constructors
public VisioStencilPreviewImageData(string masterId, string masterNameU, string? masterName, VisioStencilPreviewImage previewImage, byte[] data) #Initializes extracted preview image payload data.
Parameters
- masterId string
- masterNameU string
- masterName string?
- previewImage OfficeIMO.Visio.Stencils.VisioStencilPreviewImage
- data byte[]
Methods
public Task SaveAsync(string path, CancellationToken cancellationToken = default) #Saves the preview payload to a file asynchronously.
Parameters
- path string
- cancellationToken System.Threading.CancellationToken = default
Returns
Taskpublic Task SaveAsync(Stream stream, CancellationToken cancellationToken = default) #Saves the preview payload to a caller-owned stream asynchronously.
Parameters
- stream System.IO.Stream
- cancellationToken System.Threading.CancellationToken = default
Returns
Taskpublic string SaveToDirectory(string directoryPath) #Saves the preview payload to a directory using VisioStencilPreviewImageData.SuggestedFileName.
Parameters
- directoryPath string
Returns
stringpublic async Task<string> SaveToDirectoryAsync(string directoryPath, CancellationToken cancellationToken = default) #Saves the preview payload to a directory using VisioStencilPreviewImageData.SuggestedFileName asynchronously.
Parameters
- directoryPath string
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<string>public MemoryStream ToStream() #Returns the embedded preview image in a new stream positioned at the beginning.
Returns
MemoryStreamInherited Methods
Properties
public string? MasterName { get; } #Source master display name, when present.
public VisioStencilPreviewImage PreviewImage { get; } #Preview image metadata associated with the extracted payload.
public int ByteLength { get; } #Embedded preview image byte length.
public string SuggestedFileName { get; } #Stable file name suitable for saving the extracted preview payload.