Class CellAlignment
Represents the alignment settings for cell content.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class CellAlignment
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Fields
DefaultHorizontalCellAlignment
Exposes the horizontal cell alignment associated with CellAlignment.
Declaration
public const HorizontalCellAlignment DefaultHorizontalCellAlignment = General
Field Value
| Type | Description |
|---|---|
| HorizontalCellAlignment | The horizontal cell alignment returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
DefaultTextRotation
Exposes the int associated with CellAlignment.
Declaration
public const int DefaultTextRotation = 0
Field Value
| Type | Description |
|---|---|
| int | The int returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Properties
HorizontalAlignment
Exposes the horizontal alignment associated with CellAlignment.
Declaration
public virtual HorizontalCellAlignment HorizontalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| HorizontalCellAlignment | The horizontal alignment returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Indentation
Exposes the indentation associated with CellAlignment.
Declaration
public virtual int Indentation { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The indentation returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
IsVertical
Indicates whether the vertical condition is true for the CellAlignment.
Declaration
public virtual bool IsVertical { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | The is vertical returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
JustifyLastLine
Exposes the justify last line associated with CellAlignment.
Declaration
public virtual bool JustifyLastLine { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | The justify last line returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Orientation
Exposes the orientation associated with CellAlignment.
Declaration
public virtual int Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The orientation returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
ShrinkToFit
Exposes the shrink to fit associated with CellAlignment.
Declaration
public virtual bool ShrinkToFit { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | The shrink to fit returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
TextDirection
Exposes the text direction associated with CellAlignment.
Declaration
public virtual TextDirection TextDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| TextDirection | The text direction returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
VerticalAlignment
Exposes the vertical alignment associated with CellAlignment.
Declaration
public virtual VerticalCellAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| VerticalCellAlignment | The vertical alignment returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
WrapText
Exposes the wrap text associated with CellAlignment.
Declaration
public virtual bool WrapText { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | The wrap text returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Methods
Equals(CellAlignment)
Exposes the equals associated with CellAlignment.
Declaration
public bool Equals(CellAlignment other)
Parameters
| Type | Name | Description |
|---|---|---|
| CellAlignment | other | The other used by the operation. |
Returns
| Type | Description |
|---|---|
| bool | The equals returned by the operation. |
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
Equals(object)
Exposes the equals associated with CellAlignment.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The obj used by the operation. |
Returns
| Type | Description |
|---|---|
| bool | The equals returned by the operation. |
Overrides
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.
GetHashCode()
Retrieves the requested hash code from the CellAlignment.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The get hash code returned by the operation. |
Overrides
Remarks
A CellAlignment controls horizontal and vertical positioning of cell content,
text rotation, indentation, and wrap settings.