public static void Run()
{
// ExStart:RangesGetText
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_WorkingWithRanges();
Document doc = new Document(dataDir + "Document.doc");
string text = doc.Range.Text;
// ExEnd:RangesGetText
Console.WriteLine("\nDocument have following text range " + text);
}
}