Table of Contents

Interface IXLAlignment

Namespace
SlapKit.Excel.Excel
Assembly
SlapKit.Excel.dll
public interface IXLAlignment : IEquatable<IXLAlignment>
Inherited Members
Extension Methods

Properties

Horizontal

Gets or sets the cell's horizontal alignment.

XLAlignmentHorizontalValues Horizontal { get; set; }

Property Value

XLAlignmentHorizontalValues

Indent

Gets or sets the cell's text indentation.

int Indent { get; set; }

Property Value

int

JustifyLastLine

Gets or sets whether the cell's last line is justified or not.

bool JustifyLastLine { get; set; }

Property Value

bool

ReadingOrder

Gets or sets the cell's reading order.

XLAlignmentReadingOrderValues ReadingOrder { get; set; }

Property Value

XLAlignmentReadingOrderValues

RelativeIndent

Gets or sets the cell's relative indent.

int RelativeIndent { get; set; }

Property Value

int

ShrinkToFit

Gets or sets whether the cell's font size should decrease to fit the contents.

bool ShrinkToFit { get; set; }

Property Value

bool

TextRotation

Gets or sets the cell's text rotation in degrees. Allowed values are -90 (text is rotated clockwise) to 90 (text is rotated counterclockwise) and 255 for vertical layout of a text.

int TextRotation { get; set; }

Property Value

int

TopToBottom

Gets or sets whether the cell's text should be displayed from to to bottom

(as opposed to the normal left to right).

bool TopToBottom { get; set; }

Property Value

bool

Vertical

Gets or sets the cell's vertical alignment.

XLAlignmentVerticalValues Vertical { get; set; }

Property Value

XLAlignmentVerticalValues

WrapText

Gets or sets whether the cell's text should wrap if it doesn't fit.

bool WrapText { get; set; }

Property Value

bool

Methods

SetHorizontal(XLAlignmentHorizontalValues)

IXLStyle SetHorizontal(XLAlignmentHorizontalValues value)

Parameters

value XLAlignmentHorizontalValues

Returns

IXLStyle

SetIndent(int)

IXLStyle SetIndent(int value)

Parameters

value int

Returns

IXLStyle

SetJustifyLastLine()

IXLStyle SetJustifyLastLine()

Returns

IXLStyle

SetJustifyLastLine(bool)

IXLStyle SetJustifyLastLine(bool value)

Parameters

value bool

Returns

IXLStyle

SetReadingOrder(XLAlignmentReadingOrderValues)

IXLStyle SetReadingOrder(XLAlignmentReadingOrderValues value)

Parameters

value XLAlignmentReadingOrderValues

Returns

IXLStyle

SetRelativeIndent(int)

IXLStyle SetRelativeIndent(int value)

Parameters

value int

Returns

IXLStyle

SetShrinkToFit()

IXLStyle SetShrinkToFit()

Returns

IXLStyle

SetShrinkToFit(bool)

IXLStyle SetShrinkToFit(bool value)

Parameters

value bool

Returns

IXLStyle

SetTextRotation(int)

IXLStyle SetTextRotation(int value)

Parameters

value int

Returns

IXLStyle

SetTopToBottom()

IXLStyle SetTopToBottom()

Returns

IXLStyle

SetTopToBottom(bool)

IXLStyle SetTopToBottom(bool value)

Parameters

value bool

Returns

IXLStyle

SetVertical(XLAlignmentVerticalValues)

IXLStyle SetVertical(XLAlignmentVerticalValues value)

Parameters

value XLAlignmentVerticalValues

Returns

IXLStyle

SetWrapText()

IXLStyle SetWrapText()

Returns

IXLStyle

SetWrapText(bool)

IXLStyle SetWrapText(bool value)

Parameters

value bool

Returns

IXLStyle