Question:
Can I access the text annotation of document using the Platform .NET API?
Solution:
Following code sample is a simple way to access the text annotation of a document:
publicstring ReadFromTextAnnotation(Document document)
{
StreamReader reader = newStreamReader(document.GetStreamFromTextAnnotationRelation());
string text = reader.ReadToEnd();
return text;
}