Show / Hide Table of Contents

Class ExcelDxfAlignment

Represents a cell alignment properties used for differential style formatting.

Inheritance
System.Object
DxfStyleBase
ExcelDxfAlignment
Inherited Members
DxfStyleBase.SetValueColor(XmlHelper, String, ExcelDxfColor)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
System.Boolean
Overrides
DxfStyleBase.HasValue

HorizontalAlignment

Horizontal alignment.

Declaration
public ExcelHorizontalAlignment? HorizontalAlignment { get; set; }
Property Value
Type Description
System.Nullable<ExcelHorizontalAlignment>

Indent

The margin between the border and the text

Declaration
public int? Indent { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

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
System.Nullable<System.Boolean>

ReadingOrder

Reading order 0 - Context Dependent 1 - Left-to-Right 2 - Right-to-Left

Declaration
public int? ReadingOrder { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

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
System.Nullable<System.Int32>

ShrinkToFit

Shrink the text to fit

Declaration
public bool? ShrinkToFit { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

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
System.Nullable<System.Int32>

VerticalAlignment

Vertical alignment.

Declaration
public ExcelVerticalAlignment? VerticalAlignment { get; set; }
Property Value
Type Description
System.Nullable<ExcelVerticalAlignment>

WrapText

Wrap the text

Declaration
public bool? WrapText { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Methods

Clear()

Clears all properties

Declaration
public override void Clear()
Overrides
DxfStyleBase.Clear()

SetTextVertical()

Makes the text vertically. This is the same as setting TextRotation to 255.

Declaration
public void SetTextVertical()
In This Article
Back to top Generated by DocFX