Skip to content

SubFile::Name property

The Name property displays name of the sub-document, if available.

string Name { get; }
string getName() throws IGRException;
@property
def Name(self) -> string
std::wstring getName();
[propget] HRESULT Name([out, retval] BSTR *result);

Return Value

string : The name of the subfile.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
using Hyland.DocumentFilters;

var api = new Hyland.DocumentFilters.Api();
api.Initialize("License Code", ".");

using var doc = api.GetExtractor("filename.doc");
doc.Open(Hyland.DocumentFilters.OpenType.BodyAndMeta);

foreach (var subfile in doc.SubFiles)
{
    using (subfile)
    {
        // act on subfile
        Console.Out.WriteLine("Name: " + subFile.Name);
        Console.Out.WriteLine("ID: " + subFile.ID);
        Console.Out.WriteLine("Date: " + subFile.FileDate);
        Console.Out.WriteLine("Size: " + subFile.FileSize);        
    } 
}

See Also