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);

GetDocumentPartNames(Byte[], StreamType)

public static string[] GetDocumentPartNames(byte[] binaryData, StreamType streamType);

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.

Further Reading

Learn more about the TXTextControl.LoadSettings.GetDocumentPartNames Method in the Text Control Blog: