API Reference
LegacyXlsCellFormat
Represents a parsed legacy XLS XF cell format.
Inheritance
- Object
- LegacyXlsCellFormat
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property LegacyXlsWorkbook.CellFormats
Accepted by parameters
Constructors
public LegacyXlsCellFormat(UInt16 styleIndex, UInt16 fontIndex, UInt16 numberFormatId, Boolean isStyle, UInt16 parentStyleIndex, Boolean applyNumberFormat, Boolean applyFont, Boolean applyFill, Byte fillPattern, UInt16 fillForegroundColorIndex, UInt16 fillBackgroundColorIndex, Boolean applyBorder, Boolean applyAlignment, Byte horizontalAlignment, Byte verticalAlignment, Boolean wrapText, Byte textRotation, Byte indent, Boolean shrinkToFit, Byte readingOrder, Boolean applyProtection, Boolean locked, Boolean formulaHidden, Boolean quotePrefix, LegacyXlsBorder border, String numberFormatCode, Boolean isBuiltInNumberFormat, Boolean isDateLike) #Creates a parsed legacy XLS cell format.
Parameters
- styleIndex System.UInt16
- Zero-based XF index.
- fontIndex System.UInt16
- Legacy FontIndex referenced by the XF record.
- numberFormatId System.UInt16
- Legacy IFmt number format identifier.
- isStyle System.Boolean
- Whether this XF represents a cell style XF rather than a cell XF.
- parentStyleIndex System.UInt16
- Legacy parent style XF index for cell XF inheritance.
- applyNumberFormat System.Boolean
- Whether the number format facet is owned by this cell XF.
- applyFont System.Boolean
- Whether the font facet is owned by this cell XF.
- applyFill System.Boolean
- Whether the fill facet is owned by this cell XF.
- fillPattern System.Byte
- Legacy fill pattern code.
- fillForegroundColorIndex System.UInt16
- Legacy foreground fill color index.
- fillBackgroundColorIndex System.UInt16
- Legacy background fill color index.
- applyBorder System.Boolean
- Whether the border facet is owned by this cell XF.
- applyAlignment System.Boolean
- Whether alignment fields should be projected.
- horizontalAlignment System.Byte
- Legacy horizontal alignment code.
- verticalAlignment System.Byte
- Legacy vertical alignment code.
- wrapText System.Boolean
- Whether text wrapping is enabled.
- textRotation System.Byte
- Legacy text rotation code.
- indent System.Byte
- Legacy indentation level.
- shrinkToFit System.Boolean
- Whether shrink-to-fit is enabled.
- readingOrder System.Byte
- Legacy reading order code.
- applyProtection System.Boolean
- Whether protection fields should be projected.
- locked System.Boolean
- Whether locked protection is enabled.
- formulaHidden System.Boolean
- Whether formula display is hidden when the worksheet is protected.
- quotePrefix System.Boolean
- Whether the cell has a Lotus 1-2-3 quote-prefix marker.
- border OfficeIMO.Excel.LegacyXls.Model.LegacyXlsBorder
- Resolved border formatting, when present.
- numberFormatCode System.String
- Resolved Excel number format code.
- isBuiltInNumberFormat System.Boolean
- Whether the number format id is built in.
- isDateLike System.Boolean
- Whether the number format should be treated as a date/time format.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public UInt16 StyleIndex { get; } #Gets the zero-based legacy XF index referenced by cells.
public UInt16 FontIndex { get; } #Gets the legacy FontIndex referenced by the XF record.
public UInt16 NumberFormatId { get; } #Gets the legacy IFmt number format identifier.
public Boolean IsStyle { get; } #Gets whether this XF represents a cell style XF rather than a cell XF.
public UInt16 ParentStyleIndex { get; } #Gets the parent style XF index referenced by a cell XF.
public Boolean ApplyNumberFormat { get; } #Gets whether the number format facet is owned by this cell XF instead of inherited from the parent style XF.
public Boolean ApplyFont { get; } #Gets whether the font facet is owned by this cell XF instead of inherited from the parent style XF.
public Boolean ApplyFill { get; } #Gets whether the fill facet is owned by this cell XF instead of inherited from the parent style XF.
public Byte FillPattern { get; } #Gets the legacy fill pattern code.
public UInt16 FillForegroundColorIndex { get; } #Gets the legacy foreground fill color index.
public UInt16 FillBackgroundColorIndex { get; } #Gets the legacy background fill color index.
public Boolean ApplyBorder { get; } #Gets whether the border facet is owned by this cell XF instead of inherited from the parent style XF.
public Boolean ApplyAlignment { get; } #Gets whether alignment fields should be projected.
public Byte HorizontalAlignment { get; } #Gets the legacy horizontal alignment code.
public Byte VerticalAlignment { get; } #Gets the legacy vertical alignment code.
public Boolean WrapText { get; } #Gets whether text wrapping is enabled.
public Byte TextRotation { get; } #Gets the legacy text rotation code.
public Byte Indent { get; } #Gets the legacy indentation level.
public Boolean ShrinkToFit { get; } #Gets whether shrink-to-fit is enabled.
public Byte ReadingOrder { get; } #Gets the legacy reading order code.
public Boolean ApplyProtection { get; } #Gets whether protection fields should be projected.
public Boolean Locked { get; } #Gets whether locked protection is enabled.
public Boolean QuotePrefix { get; } #Gets whether the cell has a Lotus 1-2-3 quote-prefix marker.
public LegacyXlsBorder Border { get; } #Gets parsed border formatting, when present.
public String NumberFormatCode { get; } #Gets the resolved Excel number format code, when known.
public Boolean IsBuiltInNumberFormat { get; } #Gets whether the number format identifier is built in.
public Boolean IsDateLike { get; } #Gets whether this cell format should be treated as date/time-like.