TxtLoadOptionsDocumentDirection Property |
Gets or sets a document direction.
The default value is
LeftToRight.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic DocumentDirection DocumentDirection { get; set; }
Public Property DocumentDirection As DocumentDirection
Get
Set
public:
property DocumentDirection DocumentDirection {
DocumentDirection get ();
void set (DocumentDirection value);
}
member DocumentDirection : DocumentDirection with get, set
Property Value
Type:
DocumentDirection
ExamplesShows how to detect document direction automatically.
TxtLoadOptions loadOptions = new TxtLoadOptions();
loadOptions.DocumentDirection = DocumentDirection.Auto;
Document doc = new Document(MyDir + documentPath, loadOptions);
Paragraph paragraph = doc.FirstSection.Body.FirstParagraph;
Assert.AreEqual(isBidi, paragraph.ParagraphFormat.Bidi);
See Also