Features
Parser.Features property
Gets the supported features.
public Features Features { get; }
Property Value
An instance of Features
class that represents the supported features.
Remarks
Learn more:
Examples
If the feature isn’t supported, the method returns null
instead of the value. Some operations may consume significant time. So it’s not optimal to call the method to just check the support for the feature. For this purpose Features property is used:
using(Parser parser = new Parser("doc.zip"))
{
if(!parser.Features.Text)
{
Console.WriteLine("Text extraction isn't supported");
return;
}
using(TextReader reader = parser.GetText())
{
Console.WriteLine(reader.ReadToEnd());
}
}
See Also
- class Features
- class Parser
- namespace GroupDocs.Parser
- assembly GroupDocs.Parser