18.3.1.4 c (Cell) 🔗
This collection represents a cell in the worksheet.
Information about the cell’s location (reference), value, data type, formatting, and formula is expressed here.
このコレクションはワークシート内のセルを表す。
セルの位置 (参照)、値、データ型、書式設定、数式に関する情報が表現される。
This example shows the information stored for a cell whose address in the grid is C6, whose style index is ‘6’, and whose value metadata index is ‘15’.
The cell contains a formula as well as a calculated result of that formula.
このセルは、アドレスが C6、スタイルインデックスが ‘6’、値メタデータインデックスが ‘15’ であるセルに格納されている情報を示す。
数式とその数式の計算結果が含まれている。
<c r="C6" s="1" vm="15">
<f>CUBEVALUE("xlextdat9 Adventure Works",C$5,$A6)</f>
<v>2838512.355</v>
</c>
While a cell can have a formula element f and a value element v, when the cell’s type t is inlineStr then only the element is is allowed as a child element.
Here is an example of expressing a string in the cell rather than using the shared string table.
セルの型 t が inlineStr の場合、要素 is のみが子要素として許可される。
共有文字列テーブルを使用するのではなく、セル内の文字列を表現する。
<row r="1" spans="1:1">
<c r="A1" t="inlineStr">
<is><t>This is inline string example</t></is>
</c>
</row>
Attributes 🔗
-
cm (Cell Metadata Index)
-
ph (Show Phonetic)
-
r (Reference) / ST_CellRef
An A1 style reference to the location of this cell The possible values for this attribute are defined by the ST_CellRef simple type (§18.18.7).
このセルの位置への A1 スタイル参照。この属性の可能な値は、ST_CellRef 単純型 (§18.18.7) によって定義されます。
-
s (Style Index) / uint
The index of this cell’s style. Style records are stored in the Styles Part.
The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.このセルのスタイルのインデックス。
スタイルレコードはスタイルパートに保存される。 -
t (Cell Data Type) / ST_CellType
An enumeration representing the cell’s data type.
The possible values for this attribute are defined by the ST_CellType simple type (§18.18.11).セルのデータ型を表す。
-
vm (Value Metadata Index)
Note 🔗
The W3C XML Schema definition of this element’s content model (CT_Cell) is located in §A.2.
この要素のコンテンツ モデル (CT_Cell) の W3C XML スキーマ定義は、§A.2 に参照。