Поделиться через


CellFormats Class

Cell Formats.When the object is serialized out as xml, its qualified name is x:cellXfs.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.CellFormats

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(CellFormat))> _
Public Class CellFormats _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As CellFormats
[ChildElementInfoAttribute(typeof(CellFormat))]
public class CellFormats : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • CellFormat <x:xf>

[ISO/IEC 29500-1 редакция 1]

18.8.10 cellXfs (Cell Formats)

This element contains the master formatting records (xf) which define the formatting applied to cells in this workbook. These records are the starting point for determining the formatting for a cell. Cells in the Sheet Part reference the xf records by zero-based index.

A cell can have both direct formatting (e.g., bold) and a cell style (e.g., Explanatory) applied to it. Therefore, both the cell style xf records and cell xf records shall be read to understand the full set of formatting applied to a cell.

Parent Elements

styleSheet (§18.8.39)

Child Elements

Subclause

xf (Format)

§18.8.45

Attributes

Description

count (Format Count)

Count of xf elements.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

[Note: The W3C XML Schema definition of this element's content model (CT_CellXfs) is located in §A.2. end note]

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CellFormats Members

DocumentFormat.OpenXml.Spreadsheet Namespace