Click or drag to resize
PicoXLSX

StyleCellXf Class

Class representing an XF entry. The XF entry is used to make reference to other style instances like Border or Fill and for the positioning of the cell content
Inheritance Hierarchy
SystemObject
  PicoXLSXAbstractStyle
    PicoXLSXStyleCellXf

Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 3.2.1+e0edc719a6aeecf6c989e5a57750c75d6f3175bb
Syntax
C#
public class CellXf : AbstractStyle

The StyleCellXf type exposes the following members.

Constructors
 NameDescription
Private methodStatic memberStyleCellXf 
Public methodStyleCellXf Initializes a new instance of the StyleCellXf class
Top
Properties
 NameDescription
Public propertyAlignment Gets or sets the text break options of the style
Public propertyForceApplyAlignment Gets or sets a value indicating whether ForceApplyAlignment Gets or sets whether the applyAlignment property (used to merge cells) will be defined in the XF entry of the style. If true, applyAlignment will be defined
Public propertyHidden Gets or sets a value indicating whether Hidden Gets or sets whether the hidden property (used for protection or hiding of cells) will be defined in the XF entry of the style. If true, hidden will be defined
Public propertyHorizontalAlign Gets or sets the horizontal alignment of the style
Public propertyIndent Gets or sets the indentation in case of left, right or distributed alignment. If 0, no alignment is applied
Public propertyInternalID Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle)
Public propertyLocked Gets or sets a value indicating whether Locked Gets or sets whether the locked property (used for locking / protection of cells or worksheets) will be defined in the XF entry of the style. If true, locked will be defined
Public propertyTextDirection Gets or sets the direction of the text within the cell
Public propertyTextRotation Gets or sets the text rotation in degrees (from +90 to -90)
Public propertyVerticalAlign Gets or sets the vertical alignment of the style
Top
Methods
 NameDescription
Protected methodCalculateInternalRotation Method to calculate the internal text rotation. The text direction and rotation are handled internally by the text rotation value
Public methodCompareTo Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodCopy Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy)
Public methodCopyCellXf Method to copy the current object to a new one with casting
Protected methodCopyPropertiesT Internal method to copy altered properties from a source object. The decision whether a property is copied is dependent on a untouched reference object
(Inherited from AbstractStyle)
Public methodEquals(AbstractStyle) Method to compare two objects for sorting purpose
(Inherited from AbstractStyle)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Override toString method
(Overrides ObjectToString)
Top
Fields
 NameDescription
Public fieldStatic memberDEFAULT_ALIGNMENT Default text break value as constant
Public fieldStatic memberDEFAULT_HORIZONTAL_ALIGNMENT Default horizontal align value as constant
Public fieldStatic memberDEFAULT_TEXT_DIRECTION Default text direction value as constant
Public fieldStatic memberDEFAULT_VERTICAL_ALIGNMENT Default vertical align value as constant
Top
See Also