SpreadsheetML only. Returns the names of all document parts the specified document contains. Each SpreadsheetML document can contain multiple named worksheets.

Introduced: X16.

GetDocumentPartNames(String, StreamType)

public static string[] GetDocumentPartNames(string path, StreamType streamType);
Public Shared Function GetDocumentPartNames(ByVal path As String, ByVal streamType As StreamType) As String()

GetDocumentPartNames(Byte[], StreamType)

public static string[] GetDocumentPartNames(byte[] binaryData, StreamType streamType);
Public Shared Function GetDocumentPartNames(ByVal binaryData As Byte(), ByVal streamType As StreamType) As String()

Parameters

Parameter Description
path Specifies a file from which the document is loaded.
binaryData Specifies a byte array from which the document is loaded.
streamType Specifies one of the StreamType values. Currently only StreamType.SpreadSheetML is supported.

Limitations

SpreadSheetML only.