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