[]
Specifies the direction of a data bar.
Use this enumeration with Direction to control how a data bar is displayed in cells that use data bar conditional formatting.
public enum DataBarDirection
Public Enum DataBarDirection
worksheet.Range["A1:A3"].Value = new object[,] { { 10 }, { 20 }, { 30 } };
IDataBar dataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
dataBar.Direction = DataBarDirection.RightToLeft;
DataBarDirection direction = dataBar.Direction;
| Name | Description |
|---|---|
| Context | Specifies that the data bar direction is inherited from the current context. |
| LeftToRight | Specifies that the data bar is displayed from left to right. |
| RightToLeft | Specifies that the data bar is displayed from right to left. |