NativeExcel2 for .Net Developer's Reference

IRange.ReadingOrder Property

Gets or sets the reading order for the specified range.

[Visual Basic]
PropertyReadingOrderAsXlReadingOrder
[C#]
XlReadingOrderReadingOrder{get;set;}
[C++]
__propertyXlReadingOrderget_ReadingOrder();
__propertyvoidset_ReadingOrder(XlReadingOrder);
[JScript]
functiongetReadingOrder():XlReadingOrder
functionsetReadingOrder(XlReadingOrder);

Property Value

One of the XlReadingOrder values.

Example

This example sets rigth-to-left reading order for the range A1:A5 on sheet one.

[C#]
 book.Worksheets[1].Range["A1:A5"].ReadingOrder = XlReadingOrder.xlRTL;
[VisualBasic]
 book.Worksheets(1).Range("A1:A5").ReadingOrder = XlReadingOrder.xlRTL
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:A5"]->ReadingOrder = XlReadingOrder::xlRTL;

See Also

IRange Interface | NativeExcel Namespace | XlReadingOrder Enumeration