Class ExcelDxfAlignment
- Namespace
- OfficeOpenXml.Style.Dxf
- Assembly
- EPPlus.dll
Represents a cell alignment properties used for differential style formatting.
public class ExcelDxfAlignment : DxfStyleBase
- Inheritance
-
ExcelDxfAlignment
- Inherited Members
Properties
HasValue
If the dxf style has any values set.
public override bool HasValue { get; }
Property Value
HorizontalAlignment
Horizontal alignment.
public ExcelHorizontalAlignment? HorizontalAlignment { get; set; }
Property Value
Indent
The margin between the border and the text
public int? Indent { get; set; }
Property Value
- int?
JustifyLastLine
If the cells justified or distributed alignment should be used on the last line of text.
public bool? JustifyLastLine { get; set; }
Property Value
- bool?
ReadingOrder
Reading order 0 - Context Dependent 1 - Left-to-Right 2 - Right-to-Left
public int? ReadingOrder { get; set; }
Property Value
- int?
RelativeIndent
The additional number of spaces of indentation to adjust for text in a cell.
public int? RelativeIndent { get; set; }
Property Value
- int?
ShrinkToFit
Shrink the text to fit
public bool? ShrinkToFit { get; set; }
Property Value
- bool?
TextRotation
String orientation in degrees. Values range from 0 to 180 or 255. Setting the rotation to 255 will align text vertically.
public int? TextRotation { get; set; }
Property Value
- int?
VerticalAlignment
Vertical alignment.
public ExcelVerticalAlignment? VerticalAlignment { get; set; }
Property Value
WrapText
Wrap the text
public bool? WrapText { get; set; }
Property Value
- bool?
Methods
Clear()
Clears all properties
public override void Clear()
SetTextVertical()
Makes the text vertically. This is the same as setting TextRotation to 255.
public void SetTextVertical()