Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Ranges.RangesGetText.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        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);
        }
    }
RangesGetText