Shapes, pictures, charts, form controls, text boxes and cell comments are stored as
drawings. The shapes themselves are Office drawing (OfficeArt) records, defined in
[MS-ODRAW], carried inside MsoDrawingGroup and MsoDrawing
records; the properties that belong to Excel are in Obj, TxO
and Note records that follow them. Section numbers are those of [MS-XLS]
v20250819; integers are little-endian.
How the records are ordered
In a worksheet, macro sheet or dialog sheet substream the drawing records are
(ABNF): OBJECTS = *(MSODRAWING *(TEXTOBJECT / OBJ)) [MsoDrawingSelection]
and MSODRAWING = MsoDrawing *Continue. In the Globals substream a single
MSODRAWINGGROUP = MsoDrawingGroup *Continue holds the file-wide drawing
data. When a shape in an MsoDrawing has a client-data record, the very
next record must be an Obj; when it has a client text box, the next record
must be a TxO (the sizes of these client records do not include the
Obj or TxO that follows).
| Type | Record | Data |
|---|---|---|
0x00EB | MsoDrawingGroup (2.4.171) | rgChildRec: one OfficeArtDggContainer ([MS-ODRAW]), the drawing group data for the file, in the Globals substream. |
0x00EC | MsoDrawing (2.4.170) | rgChildRec: one OfficeArtDgContainer, the drawing of one sheet. In a worksheet, macro or dialog sheet the OfficeArtClientAnchor of [MS-ODRAW] is the OfficeArtClientAnchorSheet below; in a chart sheet it is OfficeArtClientAnchorChart. |
0x00ED | MsoDrawingSelection (2.4.172) | selection: an OfficeArtFDGSL ([MS-ODRAW] 2.2.33), the selected drawing objects and the one in focus. |
0x005D | Obj (2.4.181) | An object’s properties, see below. |
0x01B6 | TxO (2.4.329) | A text box’s text and settings, see below. |
0x001C | Note (2.4.179) | A cell comment, see below. |
0x00E9 | BkHim (2.4.19) | A sheet background image, see below. |
0x00DE | OleObjectSize (2.4.187) | Unused (2), then ref (6, a RefU): the visible range of cells when the workbook is shown as an embedded object, if the active sheet (itabCur of Window1) is a worksheet, macro sheet or dialog sheet; otherwise undefined. |
0x0874 | DropDownObjIds (2.4.93) | frtHeader (12, rt = 0x0874), cidObj (2) and rgidObj: that many 2-byte object identifiers the application may reuse for the AutoFilter drop-down objects it creates at run time; none may equal an existing ObjId in the worksheet substream. |
0x0866 | HFPicture (2.4.138) | A header or footer picture; see worksheet settings. |
The records inside rgChildRec are OfficeArt records, defined in
[MS-ODRAW] (section numbers below are those of [MS-ODRAW] v20250819); the next section
gives their tree. The structures [MS-XLS] itself defines for BIFF8 follow after it.
A drawing larger than a record’s limit is continued in Continue records.
The OfficeArt record tree
Every OfficeArt record starts with an 8-byte header (OfficeArtRecordHeader,
[MS-ODRAW] 2.2.1): a 16-bit field holding recVer (low 4 bits) and
recInstance (high 12 bits), then recType (2 bytes, always
0xF000 to 0xFFFF) and recLen (4 bytes). For an atom,
recVer is the version and recLen the length without the header; a
container has recVer 0xF and a recLen that is the
sum of its children’s lengths plus the 8-byte header of each child. What
recInstance means depends on the record (the BLIP type in an FBSE, the shape
type in an FSP, the number of properties in a property table, the drawing identifier in an
FDG, the number of children in a BStore or Solver container).
Record types
| recType | recVer | Record | Section | Content |
|---|---|---|---|---|
0xF000 | 0xF | OfficeArtDggContainer | 2.2.12 | The whole drawing group, in MsoDrawingGroup: FDGGBlock, optional BStoreContainer, FOPT, optional TertiaryFOPT, ColorMRUContainer, SplitMenuColorContainer, in that order. |
0xF006 | 0 | OfficeArtFDGGBlock | 2.2.48 | An OfficeArtFDGG (2.2.47, 16 bytes: spidMax, cidcl (cluster count + 1), cspSaved, cdgSaved) and cidcl - 1 OfficeArtIDCL (2.2.46, 8 bytes: dgid, cspidCur). |
0xF001 | 0xF | OfficeArtBStoreContainer | 2.2.20 | The pictures of the file; recInstance is the number of children, each an FBSE or a BLIP (2.2.22). |
0xF007 | 2 | OfficeArtFBSE | 2.2.32 | A BLIP store entry. recInstance is the BLIP type. Fields: btWin32 (1), btMacOS (1), rgbUid (16, MD4 of the pixel data), tag (2), size (4, size of the BLIP), cRef (4, 0 for an empty slot), foDelay (4, 0xFFFFFFFF when not in the delay stream), 1 unused, cbName (1), 2 unused, nameData (cbName bytes, UTF-16), then the BLIP itself when embedded. recLen = cbName + 36, plus size if embedded. |
0xF01A to 0xF01F, 0xF029 | 0 | OfficeArtBlipEMF, WMF, PICT, JPEG, PNG, DIB, TIFF | 2.2.24 to 2.2.30 | One picture each, in that order (EMF 0xF01A, WMF 0xF01B, PICT 0xF01C, JPEG 0xF01D, PNG 0xF01E, DIB 0xF01F, TIFF 0xF029). |
0xF002 | 0xF | OfficeArtDgContainer | 2.2.13 | One sheet’s drawing, in MsoDrawing: FDG, optional FRITContainer, the group shape (SpgrContainer), further SpContainers, SolverContainer, optional deleted shapes, a second SolverContainer. |
0xF008 | 0 | OfficeArtFDG | 2.2.49 | recInstance is the drawing identifier (at most 0xFFE); csp (4, shapes in the drawing), spidCur (4, last shape identifier). |
0xF003 | 0xF | OfficeArtSpgrContainer | 2.2.16 | A group: SpContainer for the group shape first, then SpContainers and SpgrContainers (2.2.17). |
0xF004 | 0xF | OfficeArtSpContainer | 2.2.14 | One shape: optional FSPGR, FSP, optional FPSPL, FOPT, optional SecondaryFOPT, optional TertiaryFOPT, optional ChildAnchor, the host’s client anchor, client data and client textbox, then a second SecondaryFOPT or TertiaryFOPT if the first was not present. |
0xF009 | 1 | OfficeArtFSPGR | 2.2.38 | The coordinate system of a group (24 bytes with the header); the children’s anchors are in it. |
0xF00A | 2 | OfficeArtFSP | 2.2.40 | recInstance is the shape type (MSOSPT, 2.4.24), recLen is 8: spid (4), then 32 bits of flags: fGroup, fChild, fPatriarch, fDeleted, fOleShape, fHaveMaster, fFlipH, fFlipV, fConnector, fHaveAnchor, fBackground, fHaveSpt (low bit first), 20 unused bits. |
0xF00B | 3 | OfficeArtFOPT | 2.2.9 | The shape’s property table (see below); recInstance is the number of properties. |
0xF121, 0xF122 | 3 | OfficeArtSecondaryFOPT, OfficeArtTertiaryFOPT | 2.2.10, 2.2.11 | Further property tables with the same layout. |
0xF00F | 0 | OfficeArtChildAnchor | 2.2.39 | The anchor of a shape inside a group (in the group’s coordinate system). |
0xF010, 0xF011, 0xF00D | host | OfficeArtClientAnchor, ClientData, ClientTextbox | host | Defined by the host application, here [MS-XLS] (below). |
0xF005 | 0xF | OfficeArtSolverContainer | 2.2.18 | Connector (0xF012, 2.2.36), arc (0xF014, 2.2.35) and callout (0xF017, 2.2.34) rules (2.2.19); recInstance is the number of rules. |
0xF119, 0xF11D | 0 | OfficeArtFDGSL, OfficeArtFPSPL | 2.2.33, 2.2.37 | Selected shapes; the former place of a deleted shape. |
0xF118, 0xF11A, 0xF11E | 0 | OfficeArtFRITContainer, ColorMRUContainer, SplitMenuColorContainer | 2.2.41, 2.2.43, 2.2.45 | Group-renumbering table; the recently used custom colours; the recently used fill and line colours. |
When a shape has client data or a client text box, the Obj or
TxO record follows the MsoDrawing record (see above).
The property table
An FOPT, SecondaryFOPT or TertiaryFOPT holds recInstance entries of
OfficeArtFOPTE (2.2.7, 6 bytes: opid (2) and op (4, signed)), followed by the data of
the complex properties. opid (2.2.8) is: bits 0 to 13 the property number,
bit 14 fBid (op is a BLIP identifier in the BStore container;
ignored when fComplex is set), bit 15 fComplex (op
is the size in bytes of the property’s data, which follows the whole entry array, in entry order, instead
of the value). The property numbers and what each property specifies are listed below
group by group (opid and name as in [MS-ODRAW] 2.3.2 to 2.3.27, the meaning in the words of
the specification shortened to one line). Only some enumerations and defaults are copied; the value ranges and
the remaining enumerations and defaults of each property stay in [MS-ODRAW] 2.3 and 2.4. A property named
X_complex in the spec is the data block of the property X (its
fComplex bit is 1), not a property of its own. The properties that end a group
with the number 0x…3F, 0x…7F, 0x…BF, 0x…FF
are Boolean property sets: the high 16 bits of op are “use” flags
(fUsef…), the low 16 bits the values; a value counts only when its use flag is 1.
Shape (2.3.2)
| opid | Name | Specifies |
|---|---|---|
0x0301 | hspMaster | the master shape (an MSOSPID) of a shape; default 0 |
0x0303 | cxstyle | the connector style (MSOCXSTYLE, 2.4.25); ignored unless the shape’s fConnector is 1 |
0x0304 | bWMode | how the shape renders in black-and-white display mode (MSOBWMODE, 2.4.26) |
0x0305 | bWModePureBW | the same in pure black-and-white, used when bWMode is automatic |
0x0306 | bWModeBW | the same in grey-scale black-and-white, used when bWMode is automatic |
0x0307 | idDiscussAnchor | 1: the shape is an anchor for discussion comments |
0x0309 | dgmLayout | the diagram node layout |
0x030A | dgmNodeKind | the diagram node type |
0x030B | dgmLayoutMRU | the most recently used diagram layout of the child shapes |
0x030C | equationXML | alternative mathematical content for an image (complex: UTF-8 Office Open XML Math) |
0x033F | Shape Boolean Properties | use flags and values for fPolicyLabel, fPolicyBarcode, fFlipHOverride, fFlipVOverride, fOleIcon, fPreferRelativeResize, fLockShapeType, fInitiator and fBackground (2.3.2.12); the flip overrides replace fFlipH/fFlipV of the FSP when set |
Defaults and ranges, Shape (2.3.2). hspMaster 0. cxstyle 3 (none). bWMode, bWModePureBW, bWModeBW 1 (automatic); the last two are ignored unless bWMode is automatic.
idDiscussAnchor 0; 1 makes it an anchor, any other value is ignored. dgmLayout 0xFF (nil), dgmLayoutMRU 0xFF, dgmNodeKind 0xFFFFFFFF; all three are ignored for a shape that is not a diagram node.
equationXML 0 (and 0 whenever fComplex is 0). In the Boolean property set every flag defaults to 0; a flag counts only when its fUsef… bit is 1.
Callout (2.3.3)
| opid | Name | Specifies |
|---|---|---|
0x0340 | unused832 | undefined, ignored |
0x0341 | dxyCalloutGap | EMUs from the callout box to the first vertex of the callout; default 0x1DB0 |
0x0342 | spcoa | the connection angle: 0 any (drawn from its vertices), 1 30°, 2 45°, 3 60°, 4 vertical, 5 horizontal; must be 0 for the four Callout90 shape types |
0x0343 | spcod | where the callout meets the box: 0 top, 1 centre, 2 bottom, 3 as dxyCalloutDropSpecified says (default) |
0x0344 | dxyCalloutDropSpecified | EMUs between the callout and the top of the box; ignored unless spcod is 3; default 0x1BE7C |
0x0345 | dxyCalloutLengthSpecified | EMUs, the length of the first segment; ignored unless fCalloutLengthSpecified is set; default 0 |
0x037F | Callout Boolean Properties | fCallout, fCalloutAccentBar, fCalloutTextBorder (default 1), fCalloutMinusX, fCalloutMinusY (flipped on that axis), fCalloutDropAuto, fCalloutLengthSpecified, each with its fUsef… bit (2.3.3.7) |
Ranges, Callout (2.3.3). dxyCalloutGap, dxyCalloutDropSpecified and dxyCalloutLengthSpecified should be in the range 0 to 0x0132F53F (EMUs); dxyCalloutGap defaults to 0x1DB0, dxyCalloutDropSpecified to 0x1BE7C and dxyCalloutLengthSpecified to 0. spcoa defaults to 0 (any), spcod to 3 (specified). Every Callout Boolean flag (fCallout, fCalloutAccentBar, fCalloutTextBorder, fCalloutMinusX, fCalloutMinusY, fCalloutDropAuto, fCalloutLengthSpecified) defaults to 0.
Group Shape (2.3.4) and Group Shape 2 (2.3.5)
Despite the name, these apply to a shape or a group. Most come from HTML/Word import and are not written by Excel; a reader keeps and ignores them.
| opid | Name | Specifies |
|---|---|---|
0x0380 | wzName | the name of the shape (complex: Unicode string) |
0x0381 | wzDescription | a text description of the shape (complex) |
0x0382 | pihlShape | a hyperlink for the shape (complex: a hyperlink structure) |
0x0383 | pWrapPolygonVertices | the points of a wrap polygon for text flowing around the shape (complex: array of points) |
0x0384–0x0387 | dxWrapDistLeft, dyWrapDistTop, dxWrapDistRight, dyWrapDistBottom | how close other content may come to the left, top, right, bottom edge (EMUs) |
0x0388 | lidRegroup | the regroup identifier of the shape |
0x038A | unused906 | undefined, ignored |
0x038D | wzTooltip | the tooltip of a hyperlink on the shape (complex) |
0x038E | wzScript | a script attached to the shape (complex) |
0x038F | posh | the kind of horizontal positioning (absolute, left, centre, right, inside, outside) |
0x0390 | posrelh | the page element the horizontal position is relative to (margin, page, text, character) |
0x0391 | posv | the kind of vertical positioning |
0x0392 | posrelv | the page element the vertical position is relative to |
0x0393 | pctHR | the width of a horizontal rule as a percentage of the page width |
0x0394 | alignHR | the alignment of a horizontal rule |
0x0395 | dxHeightHR | the height of a horizontal rule |
0x0396 | dxWidthHR | the width of a horizontal rule |
0x0397 | wzScriptExtAttr | an extra HTML attribute of a script block (complex) |
0x0398 | scriptLang | the language of the script on the shape |
0x039A | wzScriptLangAttr | the scripting language name when scriptLang says so (complex) |
0x039B–0x039E | borderTopColor, borderLeftColor, borderBottomColor, borderRightColor | the colour of that border of a picture shape |
0x039F | tableProperties | flags of a group that represents a table (fIsTable, fIsTablePlaceholder, fIsTableRTL) |
0x03A0 | tableRowProperties | the minimum sizes of the rows of a table (complex) |
0x03A5 | wzWebBot | content of a web component associated with the shape (complex) |
0x03A9 | metroBlob | alternative XML content for the shape (complex) |
0x03AA | dhgt | the relative z-order of the shape; ignored |
0x03BF | Group Shape Boolean Properties | fLayoutInCell (default 1), fIsBullet, fStandardHR, fNoshadeHR, fHorizRule, fUserDrawn, fAllowOverlap (default 1), fReallyHidden, fScriptAnchor, fEditedWrap, fBehindDocument, fOnDblClickNotify, fIsButton, fOneD (must be 0), fHidden, fPrint (default 1); use flags are the high 16 bits in the same order (2.3.4.44) |
0x07C0 | pctHoriz | the width of the shape as a percentage of the width of a page element (2.3.5) |
0x07C1 | pctVert | the height as a percentage of the height of a page element |
0x07C2 | pctHorizPos | the horizontal offset as a percentage relative to a page element |
0x07C3 | pctVertPos | the vertical offset as a percentage relative to a page element |
0x07C4 | sizerelh | the page element whose width counts as 100% for pctHoriz |
0x07C5 | sizerelv | the page element whose height counts as 100% for pctVert |
Defaults and values, Group Shape (2.3.4) and Group Shape 2 (2.3.5). The string and blob properties (wzName, wzDescription, pihlShape, pWrapPolygonVertices, wzTooltip, wzScript, wzScriptExtAttr, wzScriptLangAttr, tableRowProperties, wzWebBot, metroBlob) hold the size of their data when fComplex is 1 and must be 0 when it is 0; the default is 0.
dxWrapDistLeft and dxWrapDistRight default to 0x0001BE7C (114300 EMUs), dyWrapDistTop and dyWrapDistBottom to 0. lidRegroup, dhgt (ignored), tableProperties, alignHR, dxHeightHR, dxWidthHR default to 0; pctHR to 0x3E8 (1000, the width of a horizontal rule in tenths of a percent); scriptLang to 1; the four border…Color properties to 0xFFFFFFFF.
posh (default 0): 0 absolute, 1 left, 2 centre, 3 right, 4 inside, 5 outside. posrelh (default 3): 1 margin, 2 page, 3 text, 4 character; the values allowed depend on posh. posv (default 0): 0 absolute, 1 top, 2 centre, 3 bottom, 4 inside, 5 outside. posrelv (default 3): 1 margin, 2 page, 3 text, 4 line; the values allowed depend on posv.
sizerelh (default 1): 0 the page excluding the margins, 1 the page, 2 left margin, 3 right margin, 4 inside margin, 5 outside margin. sizerelv (default 1): 0 the page excluding the margins, 1 the page, 2 top margin, 3 bottom margin, 4 inside margin, 5 outside margin. pctHoriz and pctVert are 0 to 0x2710 (tenths of a percent), default 0; pctHorizPos and pctVertPos default to 0xFFFFD8EF, which means the position is not given as a percentage. In the Group Shape Boolean Properties every flag defaults to 0 except fPrint, which defaults to 1.
Geometry (2.3.6)
These properties give a shape its outline. The drawing viewer on this site reads the array
properties (pVertices, pSegmentInfo, the connection sites, handles, guides and
inscribe rectangles), the geometry space, xLimo/yLimo in formulas, and, for preset shapes, only the
first adjust value (adjustValue); the other seven adjust values use the preset’s defaults.
| opid | Name | Specifies |
|---|---|---|
0x0140–0x0143 | geoLeft, geoTop, geoRight, geoBottom | the edges of the geometry space the vertices are written in (default 0, 0, 21600, 21600) |
0x0144 | shapePath | how the vertices are joined (MSOSHAPEPATH, 2.4.9); default lines closed; ignored when pSegmentInfo is present; complex requires pSegmentInfo |
0x0145 | pVertices | the points of the shape (complex: array of POINTs, 2.3.6.7) |
0x0146 | pSegmentInfo | how the vertices are joined: MSOPATHINFO entries (complex) |
0x0147–0x014E | adjustValue, adjust2Value … adjust8Value | eight values the user can change to adjust the geometry (the yellow handles) |
0x0151 | pConnectionSites | the points where connectors can attach (complex) |
0x0152 | pConnectionSitesDir | the angles belonging to the connection sites (complex) |
0x0153 | xLimo | x above which limousine scaling is used in the geometry space |
0x0154 | yLimo | y above which limousine scaling is used |
0x0155 | pAdjustHandles | the adjust handles that let a user manipulate the shape (complex) |
0x0156 | pGuides | formulas that compute values used to define the geometry (complex) |
0x0157 | pInscribe | rectangles that say how text is inscribed in the shape (complex) |
0x0158 | cxk | where connection points exist (MSOCXK, 2.4.10); custom means pConnectionSites; default segments |
0x017F | Geometry Boolean Properties | fShadowOK (default 1), f3DOK (1), fLineOK (1), fGtextOK (0), fFillShadeShapeOK (0, 1 aligns the fill to the shape itself), fFillOK (1); fReflectionOK, fGlowOK and fSoftEdgeOK are unused (2.3.6.31) |
Defaults, Geometry (2.3.6). geoLeft and geoTop 0; geoRight and geoBottom 0x5460 (21600); the four are signed 32-bit coordinates whose rectangle is fitted to the shape bounds. shapePath 1 (lines closed). pVertices, pSegmentInfo, pConnectionSites, pConnectionSitesDir, pAdjustHandles, pGuides, pInscribe 0 (and 0 whenever fComplex is 0). adjustValue to adjust8Value (signed) 0. xLimo, yLimo 0x80000000 (no limousine scaling). cxk 1 (segments). A vertex or connection coordinate in the range 0x80000000 to 0x8000007F is not a coordinate but, after subtracting 0x80000000, a zero-based index into the pGuides_complex array. In the Geometry Boolean Properties fShadowOK, f3DOK, fLineOK and fFillOK default to 1, every other flag (including fFillShadeShapeOK) to 0.
Fill Style (2.3.7)
| opid | Name | Specifies |
|---|---|---|
0x0180 | fillType | the kind of fill (MSOFILLTYPE, 2.4.11): 0 solid (default), 1 pattern, 2 texture, 3 picture, 4 shade, 5 shade centre, 6 shade to shape, 7 shade scale, 8 shade title, 9 background |
0x0181 | fillColor | the foreground colour of the fill (an MSOCLR) |
0x0182 | fillOpacity | the foreground opacity (16.16 fixed point; 0x10000 opaque) |
0x0183 | fillBackColor | the background colour of the fill |
0x0184 | fillBackOpacity | the background opacity |
0x0185 | fillCrMod | the foreground colour in black-and-white display mode |
0x0186 | fillBlip | the BLIP (its 1-based index into the BLIP store, fBid set) of a pattern, texture or picture fill |
0x0187 | fillBlipName | a comment, file name or URL for the fill BLIP (complex) |
0x0188 | fillBlipFlags | how to interpret fillBlipName (MSOBLIPFLAGS, 2.4.8); default comment |
0x0189, 0x018A | fillWidth, fillHeight | the size of a texture, picture or pattern fill (unit per fillDztype) |
0x018B | fillAngle | the angle of the gradient of a shaded fill (a FixedPoint, [MS-OSHARED] 2.2.1.6; 0 is a vertical vector from bottom to top) |
0x018C | fillFocus | the relative position of the last colour of the shade |
0x018D–0x0190 | fillToLeft, fillToTop, fillToRight, fillToBottom | the relative edges of the centre rectangle of a shade-centre fill |
0x0191–0x0194 | fillRectLeft, fillRectTop, fillRectRight, fillRectBottom | the bounding rectangle of the filled area (EMUs), used when fillUseRect is set |
0x0195 | fillDztype | how fillWidth and fillHeight are interpreted (MSODZTYPE, 2.4.12); default msodztypeDefault |
0x0196 | fillShadePreset | the preset colours of the gradient fill |
0x0197 | fillShadeColors | the colours and their positions along the shade (complex) |
0x0198, 0x0199 | fillOriginX, fillOriginY | the origin of a picture fill relative to the centre of the shape |
0x019A, 0x019B | fillShapeOriginX, fillShapeOriginY | the same relative to the shape’s bounding box |
0x019C | fillShadeType | how the shaded fill is computed (an MSOSHADETYPE, 2.2.50); default 0x40000003 |
0x019E, 0x01A0 | fillColorExt, fillColorExtMod | the extended foreground colour and its modification |
0x01A2, 0x01A4 | fillBackColorExt, fillBackColorExtMod | the extended background colour and its modification |
0x019F, 0x01A1, 0x01A3, 0x01A6, 0x01A7 | reserved415, 417, 419, 422, 423 | must be 0xFFFFFFFF; ignored |
0x01BF | Fill Style Boolean Properties | fRecolorFillAsPicture, fUseShapeAnchor (fill rotates with the shape), fFilled (default 1), fHitTestFill (1), fillShape (1, fill moves with the shape), fillUseRect, fNoFillHitTest (2.3.7.43) |
Defaults and ranges, Fill Style (2.3.7). fillType 0 (solid). fillColor and fillBackColor 0x00FFFFFF (white). fillOpacity and fillBackOpacity are FixedPoint values from 0.0 (transparent) to 1.0 (opaque), default 0x00010000. fillCrMod 0x20000000. fillBlip 0; fillBlipName 0 (and 0 when fComplex is 0); fillBlipFlags 0 (comment); fillWidth, fillHeight 0 (ignored unless the type uses them); fillDztype 0; fillAngle, fillFocus, fillToLeft, fillToTop, fillToRight, fillToBottom 0; fillRectLeft to fillRectBottom 0 (ignored unless fillUseRect is set); fillShadePreset 0 (otherwise 0x88 to 0x9F, and ignored when fillShadeColors_complex exists); fillShadeColors 0; fillOriginX, fillOriginY, fillShapeOriginX, fillShapeOriginY 0 (for the fill to be visible fillOrigin must lie from -1.5 to 0.5 and fillShapeOrigin from -0.5 to 0.5, but values outside that range are not errors); fillShadeType 0x40000003; fillColorExt and fillBackColorExt 0xFFFFFFFF; fillColorExtMod and fillBackColorExtMod 0x20000000.
In the Fill Boolean Properties fFilled, fHitTestFill and fillShape default to 1; fRecolorFillAsPicture, fUseShapeAnchor, fillUseRect and fNoFillHitTest default to 0. fillShape 1 aligns the fill relative to the shape so that it moves with the shape, 0 aligns it with the origin of the view.
Line Style (2.3.8) and the four per-side Line Styles (2.3.9 to 2.3.12)
The four per-side groups repeat the whole Line Style group with a name that has the side in it
(lineLeftColor, lineTopWidth, …) and ids shifted by a constant:
Left starts at 0x0540 (= 0x01C0 + 0x0380), Top at
0x0580, Right at 0x05C0, Bottom at 0x0600; their Boolean property sets are
0x057F, 0x05BF, 0x05FF and 0x063F. The table gives the plain group.
| opid | Name | Specifies |
|---|---|---|
0x01C0 | lineColor | the foreground colour of the line |
0x01C1 | lineOpacity | its opacity |
0x01C2 | lineBackColor | the background colour of the line |
0x01C3 | lineCrMod | the foreground colour in black-and-white display mode |
0x01C4 | lineType | the kind of line fill: 0 solid, 1 pattern, 2 texture (2.4.13) |
0x01C5 | lineFillBlip | the BLIP that fills the line (fBid set) |
0x01C6 | lineFillBlipName | a comment about the BLIP (complex) |
0x01C7 | lineFillBlipFlags | how to interpret lineFillBlipName (MSOBLIPFLAGS) |
0x01C8, 0x01C9 | lineFillWidth, lineFillHeight | the size of a pattern or texture that fills the line |
0x01CA | lineFillDztype | how those two are interpreted (MSODZTYPE) |
0x01CB | lineWidth | the width of the line (EMUs) |
0x01CC | lineMiterLimit | the largest allowed ratio of miter length to line width |
0x01CD | lineStyle | 0 single, 1 double, 2 thick-thin, 3 thin-thick, 4 triple |
0x01CE | lineDashing | 0 solid, 1 dash, 2 dot, 3 dash-dot, 4 dash-dot-dot, 5 dot, 6 dash, 7 long dash, 8 dash-dot, 9 long dash-dot, 10 long dash-dot-dot (the first five system, the rest GEL) |
0x01CF | lineDashStyle | a custom dash pattern (complex) |
0x01D0, 0x01D1 | lineStartArrowhead, lineEndArrowhead | the end decoration: 0 none, 1 arrow, 2 stealth, 3 diamond, 4 oval, 5 open arrow; 6 and 7 (chevrons) must be ignored |
0x01D2, 0x01D4 | lineStartArrowWidth, lineEndArrowWidth | 0 narrow, 1 medium, 2 wide |
0x01D3, 0x01D5 | lineStartArrowLength, lineEndArrowLength | 0 short, 1 medium, 2 long |
0x01D6 | lineJoinStyle | 0 bevel, 1 miter, 2 round |
0x01D7 | lineEndCapStyle | 0 round, 1 square, 2 flat |
0x01D9, 0x01DB | lineColorExt, lineColorExtMod | the extended foreground colour and its modification |
0x01DD, 0x01DF | lineBackColorExt, lineBackColorExtMod | the extended background colour and its modification |
0x01DA, 0x01DC, 0x01DE, 0x01E0–0x01E2 | reserved474, 476, 478, 480, 481, 482 | must be 0xFFFFFFFF; ignored |
0x01FF | Line Style Boolean Properties | fLineOpaqueBackColor (an extra line in lineBackColor, solid, is drawn under the line), fInsetPen (draw inside the shape), fInsetPenOK (default 1), fArrowheadsOK (editable only, no rendering effect), fLine (default 1), fHitTestLine (1), fLineFillShape (1: the fill moves with the shape), fNoLineDrawDash (draw a dashed line even when there is no line) (2.3.8.38). A per-side set has only InsetPen, InsetPenOK, Line, HitTestLine, LineFillShape and NoLineDrawDash. |
Defaults and ranges, Line Style (2.3.8). lineColor 0 (black). lineOpacity 0 to 0x00010000, default 0x00010000. lineBackColor 0x00FFFFFF. lineCrMod 0x20000000. lineType 0 (solid). lineFillBlip, lineFillBlipName, lineFillWidth, lineFillHeight, lineFillDztype, lineDashStyle 0; lineFillBlipFlags 0 (it must be comment). lineWidth 0 to 0x0132F540 EMUs, default 0x2535 (9525, 0.75 point). lineMiterLimit 0x00080000 (8.0, FixedPoint). lineStyle 0 (simple). lineDashing 0 (solid). lineStartArrowhead, lineEndArrowhead 0 (none). The four arrow width properties 1 (medium); the four arrow length properties 1 (medium). lineJoinStyle 2 (round). lineEndCapStyle 2 (flat). lineColorExt and lineBackColorExt 0xFFFFFFFF; their …Mod properties 0x20000000; the reserved properties 0 (ignored).
In the Line Boolean Properties fLine, fHitTestLine and fLineFillShape default to 1 and the other flags (for example fArrowheadsOK, fLineOpaqueBackColor, fInsetPen, fInsetPenOK, fNoLineDrawDash) to 0. The Left Line Style (2.3.9) has the same defaults and ranges for every value property (colour, opacity, type, blip, fill size, width, miter limit, style, dashing, arrowheads, join, cap, extended colours); the Top, Right and Bottom Line Styles (2.3.10 to 2.3.12) repeat the structure, and so do their Boolean property sets, except that the side-line fLeftLine, fTopLine, fRightLine and fBottomLine default to 0, while the HitTestLine, InsetPenOK and LineFillShape flag of each side (for example fLeftHitTestLine, fLeftInsetPenOK, fLineLeftFillShape) default to 1.
Shadow Style (2.3.13)
| opid | Name | Specifies |
|---|---|---|
0x0200 | shadowType | the style of the shadow (MSOSHADOWTYPE, 2.4.21) |
0x0201 | shadowColor | the primary colour of the shadow |
0x0202 | shadowHighlight | the highlight colour of the shadow |
0x0203 | shadowCrMod | the primary colour in black-and-white display mode |
0x0204 | shadowOpacity | the opacity of the shadow |
0x0205, 0x0206 | shadowOffsetX, shadowOffsetY | how far the shadow lies from the shape along x and y |
0x0207, 0x0208 | shadowSecondOffsetX, shadowSecondOffsetY | the same for the highlighted shadow |
0x0210, 0x0211 | shadowOriginX, shadowOriginY | the origin of the shadow relative to the centre of the shape |
0x0212, 0x0214 | shadowColorExt, shadowColorExtMod | the extended primary colour and its modification |
0x0216, 0x0218 | shadowHighlightExt, shadowHighlightExtMod | the extended highlight colour and its modification |
0x0213, 0x0215, 0x0217, 0x0219–0x021B | reserved531, 533, 535, 537, 538, 539 | must be 0xFFFFFFFF; ignored |
0x021C | shadowSoftness | the blur radius of the shadow |
0x023F | Shadow Style Boolean Properties | fShadow (the shape has a shadow), fshadowObscured (the shadow is fully hidden by the shape); fInnerShadow is unused (2.3.13.23) |
Defaults and ranges, Shadow Style (2.3.13). shadowType 0 (offset). shadowColor 0x00808080. shadowHighlight 0x00CBCBCB. shadowCrMod 0x20000000. shadowOpacity 0.0 to 1.0, default 0x00010000. shadowOffsetX and shadowOffsetY (EMUs, signed; positive is right and down of the bounding rectangle, negative left and up) both 0x00006338. shadowSecondOffsetX and shadowSecondOffsetY 0 (they must exist only when shadowType is double, otherwise they are ignored). shadowOriginX, shadowOriginY 0. shadowColorExt and shadowHighlightExt 0xFFFFFFFF; their …Mod properties 0x20000000; reserved properties 0 (ignored). shadowSoftness (blur radius) 0 to 0x001170D8, default 0. In the Shadow Boolean Properties fShadow, fshadowObscured and the other flags default to 0; fInnerShadow is unused and ignored.
Perspective Style (2.3.14)
| opid | Name | Specifies |
|---|---|---|
0x0240 | perspectiveType | the style of the transform built for the shape (MSOXFORMTYPE, 2.4.22) |
0x0241, 0x0242 | perspectiveOffsetX, perspectiveOffsetY | the offset applied to the shape along x and y |
0x0243–0x0246 | perspectiveScaleXToX, ScaleYToX, ScaleXToY, ScaleYToY | the four entries of the 2 × 2 scale matrix of the transform |
0x0247, 0x0248 | perspectivePerspectiveX, perspectivePerspectiveY | the offset of the perspective along x and y |
0x0249 | perspectiveWeight | the perspective weighting |
0x024A, 0x024B | perspectiveOriginX, perspectiveOriginY | the origin of the shape relative to its centre |
0x027F | Perspective Style Boolean Properties | fPerspective (apply the perspective transform) (2.3.14.13) |
Defaults, Perspective Style (2.3.14). perspectiveType 1 (shape). perspectiveOffsetX, perspectiveOffsetY 0 (EMUs). perspectiveScaleXToX and perspectiveScaleYToY 0x00010000 (1.0); perspectiveScaleYToX and perspectiveScaleXToY 0. perspectivePerspectiveX, perspectivePerspectiveY 0. perspectiveWeight 0x00000100. perspectiveOriginX and perspectiveOriginY 0x00008000 (0.5). The flag fPerspective and the others default to 0. The spec states no ranges for this group.
3D Object (2.3.15)
| opid | Name | Specifies |
|---|---|---|
0x0280 | c3DSpecularAmt | the ratio of incident to specular light reflected |
0x0281 | c3DDiffuseAmt | the ratio of incident to diffuse light reflected |
0x0282 | c3DShininess | the specular power applied to the reflected specular light |
0x0283 | c3DEdgeThickness | the thickness of the specular edge |
0x0284, 0x0285 | c3DExtrudeForward, c3DExtrudeBackward | the distance the front and the back face are extruded |
0x0286 | reserved646 | must be 0; ignored |
0x0287 | c3DExtrusionColor | the colour of the extruded geometry |
0x0288 | c3DCrMod | the extrusion colour in black-and-white display mode |
0x0289, 0x028B | c3DExtrusionColorExt, c3DExtrusionColorExtMod | the extended extrusion colour and its modification |
0x028A, 0x028C, 0x028D | reserved650, 652, 653 | must be 0xFFFFFFFF; ignored |
0x02BF | 3D Object Boolean Properties | f3D (the shape has 3-D properties), fc3DMetallic, fc3DUseExtrusionColor, fc3DLightFace (2.3.15.15) |
Defaults and ranges, 3D Object (2.3.15). c3DSpecularAmt 0. c3DDiffuseAmt 0x00010000 (1.0). c3DShininess 5. c3DEdgeThickness 0x0000319C EMUs. c3DExtrudeForward 0 to 0x007445A0, default 0. c3DExtrudeBackward 0 to 0x07445A00, default 0x0006F9F0. c3DExtrusionColor 0x100000F7. c3DCrMod 0x20000000. c3DExtrusionColorExt 0xFFFFFFFF; c3DExtrusionColorExtMod 0x20000000. The reserved properties 646, 650, 652 and 653 are ignored (650 and 653 must be 0xFFFFFFFF, 646 and 652 zero). In the Boolean properties f3D, fc3DMetallic and fc3DUseExtrusionColor default to 0, and fc3DLightFace defaults to 1.
3D Style (2.3.16)
| opid | Name | Specifies |
|---|---|---|
0x02C0, 0x02C1 | c3DYRotationAngle, c3DXRotationAngle | the rotation of the shape around the y axis and the x axis |
0x02C2–0x02C4 | c3DRotationAxisX, Y, Z | the axis the shape is rotated around |
0x02C5 | c3DRotationAngle | the number of degrees to rotate around that axis |
0x02C6–0x02C8 | c3DRotationCenterX, Y, Z | the centre of the shape along each axis |
0x02C9 | c3DRenderMode | how to display the shape (MSO3DRENDERMODE, 2.4.23) |
0x02CA | c3DTolerance | the tolerance used if the geometry is broken up for rendering (a FixedPoint) |
0x02CB–0x02CD | c3DXViewpoint, c3DYViewpoint, c3DZViewpoint | the position of the perspective camera |
0x02CE, 0x02CF | c3DOriginX, c3DOriginY | the origin of the shape when displayed with the 3-D style |
0x02D0, 0x02D1 | c3DSkewAngle, c3DSkewAmount | the skew angle, and the skew amount as a percentage (used when fc3DParallel is set) |
0x02D2 | c3DAmbientIntensity | the intensity of the ambient light |
0x02D3–0x02D5, 0x02D6 | c3DKeyX, Y, Z, c3DKeyIntensity | the position and intensity of the primary light |
0x02D7–0x02D9, 0x02DA | c3DFillX, Y, Z, c3DFillIntensity | the position and intensity of the secondary light |
0x02FF | 3D Style Boolean Properties | fc3DConstrainRotation, fc3DRotationCenterAuto, fc3DParallel (parallel projection), fc3DKeyHarsh, fc3DFillHarsh (2.3.16.28) |
Defaults and ranges, 3D Style (2.3.16). c3DXRotationAngle, c3DYRotationAngle -90.0 to 90.0 degrees, default 0. c3DRotationAxisX 0x00000064, c3DRotationAxisY and c3DRotationAxisZ 0, c3DRotationAngle 0, c3DRotationCenterX/Y/Z 0. c3DRenderMode 0 (full render, a solid shape). c3DTolerance at least 0, default 0x00007530. c3DXViewpoint 0x001312D0, c3DYViewpoint 0xFFECED30, c3DZViewpoint 0x00895440 (EMUs, FixedPoint). c3DOriginX 0x00008000, c3DOriginY 0xFFFF8000. c3DSkewAngle 0xFF790000; c3DSkewAmount -100 to 100 (0xFFFFFF9C to 0x64), default 0x32. c3DAmbientIntensity 0.0 to 1.0, default 0x00004E20. Key light: c3DKeyX 0x0000C350, c3DKeyY 0, c3DKeyZ 0x00002710, c3DKeyIntensity 0.0 to 1.0, default 0x00009470. Fill light: c3DFillX 0xFFFF3CB0, c3DFillY 0, c3DFillZ 0x00002710, c3DFillIntensity 0.0 to 1.0, default 0x00009470. In the Boolean properties fc3DConstrainRotation, fc3DParallel and fc3DKeyHarsh default to 1; fc3DRotationCenterAuto and fc3DFillHarsh default to 0.
Diagram (2.3.17)
| opid | Name | Specifies |
|---|---|---|
0x0500 | dgmt | the type of the diagram (MSODGMT, 2.4.27) |
0x0501 | dgmStyle | a diagram style |
0x0504 | pRelationTbl | the relationships in the diagram (complex) |
0x0505, 0x0506 | dgmScaleX, dgmScaleY | the scale along x and y |
0x0507 | dgmDefaultFontSize | the default font size of new text in the diagram |
0x0508 | dgmConstrainBounds | the bounds of the diagram (complex) |
0x0509 | dgmBaseTextScale | the amount to scale text |
0x053F | Diagram Boolean Properties | fDoFormat, fReverse (mirrored horizontally), fDoLayout, fPseudoInline (2.3.17.11) |
Defaults, Diagram (2.3.17). dgmt 0x00000FFF. dgmStyle 0x0000FFFF (nil; ignored when dgmt is canvas). pRelationTbl 0 (and 0 when fComplex is 0). dgmScaleX and dgmScaleY 0x00010000. dgmDefaultFontSize 0xFFFFFFFF (this value is ignored). dgmConstrainBounds 0 (0 when fComplex is 0). dgmBaseTextScale 0x00010000. In the Boolean properties fDoFormat, fReverse and fPseudoInline default to 0 and fDoLayout to 1.
Defaults, Transform (2.3.18) and Relative Transform (2.3.19). left, top 0; right, bottom 1 (application-defined coordinates); rotation 0 (FixedPoint degrees, positive clockwise about the shape centre); gvPage 0. relLeft, relTop 0; relRight, relBottom 1; gvRelPage 0 (relative to a parent object or group). The flip flags (fFlipV, fFlipH, fRelFlipV, fRelFlipH) default to 0 and are ignored when their use flag is 0.
Transform (2.3.18) and Relative Transform (2.3.19)
| opid | Name | Specifies |
|---|---|---|
0x0000–0x0003 | left, top, right, bottom | the bounding rectangle that contains the object |
0x0004 | rotation | the rotation in degrees (a FixedPoint), clockwise when positive, around the centre of the shape; default 0 |
0x0005 | gvPage | the page the object is on; ignored |
0x003F | Transform Boolean Properties | fFlipV, fFlipH (2.3.18.7) |
0x03C0–0x03C3 | relLeft, relTop, relRight, relBottom | the bounding rectangle relative to the parent object or group |
0x03C4 | relRotation | the rotation relative to the parent |
0x03C5 | gvRelPage | the page the object is on, relative to a parent |
0x03FF | Relative Transform Boolean Properties | fRelFlipV, fRelFlipH (2.3.19.7) |
Protection (2.3.20)
| opid | Name | Specifies |
|---|---|---|
0x007F | Protection Boolean Properties | the only property of the group: fLockAgainstGrouping, fLockAdjustHandles, fLockText, fLockVertices, fLockCropping, fLockAgainstSelect, fLockPosition, fLockAspectRatio, fLockRotation, fLockAgainstUngrouping (2.3.20.1); each says that the user may not do that |
Text (2.3.21)
| opid | Name | Specifies |
|---|---|---|
0x0080 | lTxid | an identifier for the text (the text lives in a text box record outside the property table: in a workbook, the TxO record) |
0x0081–0x0084 | dxTextLeft, dyTextTop, dxTextRight, dyTextBottom | the margin left of, above, right of and below the text |
0x0085 | WrapText | the type of wrapping applied to the text |
0x0086, 0x008C, 0x008D | unused134, unused140, unused141 | undefined, ignored |
0x0087 | anchorText | the type of anchor applied to the text |
0x0088 | txflTextFlow | the type of flow applied to the text |
0x0089 | cdirFont | the rotation applied to the text |
0x008A | hspNext | the next shape in a sequence of linked text shapes |
0x008B | txdir | the direction of the text |
0x00BF | Text Boolean Properties | fFitShapeToText, fAutoTextMargin, fSelectText (2.3.21.15) |
Defaults and ranges, Protection (2.3.20). Every lock flag (fLockAgainstGrouping, fLockAgainstUngrouping, fLockRotation, fLockAspectRatio, fLockPosition, fLockAgainstSelect, fLockCropping, fLockVertices, fLockText, fLockAdjustHandles) defaults to 0, and a flag whose use bit is 0 is ignored in favour of that default. The spec marks fLockAgainstUngrouping as one an application may ignore.
Defaults and ranges, Text (2.3.21). lTxid 0 (a host-application identifier). dxTextLeft and dxTextRight 0 to 0x0132F540 EMUs, default 0x00016530; dyTextTop and dyTextBottom 0 to 0x0132F540, default 0x0000B298. WrapText 0 (square); anchorText 0 (top); txflTextFlow 0 (horizontal, normal); cdirFont 0 (no rotation); hspNext 0; txdir 0 (left to right). In the Boolean properties fSelectText defaults to 1, and fAutoTextMargin, fFitShapeToText and the other flags to 0.
Geometry Text (2.3.22)
| opid | Name | Specifies |
|---|---|---|
0x00C0 | gtextUNICODE | the text of the geometry text (complex: Unicode string); required when fGtext is set |
0x00C2 | gtextAlign | how the geometry text is aligned on the shape |
0x00C3 | gtextSize | the font size in points |
0x00C4 | gtextSpacing | the spacing between characters |
0x00C5 | gtextFont | the font to use (complex: name) |
0x00C6 | gtextCSSFont | extra font information beyond the single font (complex) |
0x00FF | Geometry Text Boolean Properties | gtextFReverseRows, fGtext, gtextFVertical, gtextFKern, gtextFTight, gtextFStretch, gtextFShrinkFit, gtextFBestFit, gtextFNormalize, gtextFDxMeasure, gtextFBold, gtextFItalic, gtextFUnderline, gtextFShadow, gtextFSmallcaps, gtextFStrikethrough (2.3.22.10) |
Defaults and ranges, Geometry Text (2.3.22). gtextUNICODE, gtextFont, gtextCSSFont 0 (and 0 when fComplex is 0). gtextAlign 1 (centre along the path). gtextSize at least 0, default 0x00240000 (36 points, FixedPoint). gtextSpacing 0 to 0x00050000, default 0x00010000 (no scaling). Every Geometry Text Boolean flag (fGtext, gtextFVertical, gtextFKern, gtextFTight, gtextFStretch, gtextFShrinkFit, gtextFBestFit, gtextFNormalize, gtextFDxMeasure, gtextFBold, gtextFItalic, gtextFUnderline, gtextFShadow, gtextFSmallcaps, gtextFReverseRows) defaults to 0.
Blip (2.3.23)
| opid | Name | Specifies |
|---|---|---|
0x0100–0x0103 | cropFromTop, cropFromBottom, cropFromLeft, cropFromRight | the position of that side of the crop rectangle |
0x0104 | pib | the picture: with fComplex 0 a one-based index into the BStore (0 is ignored); with 1 the property carries its OfficeArtBlip as complex data (fBid must be 1 when fComplex is 0) |
0x0105 | pibName | a comment, file name or URL for the picture, per pibFlags (complex) |
0x0106 | pibFlags | flags on the use of the BLIP |
0x0107 | pictureTransparent | the colour of the transparent pixel |
0x0108, 0x0109 | pictureContrast, pictureBrightness | the contrast and brightness modification |
0x010B | pictureId | the OLE identifier of the picture |
0x010C | pictureDblCrMod | a shadow colour for pictures with a double shadow in black-and-white mode |
0x010D, 0x010E | pictureFillCrMod, pictureLineCrMod | the fill and the line colour modification in black-and-white mode |
0x010F–0x0111 | pibPrint, pibPrintName, pibPrintFlags | the same as pib, pibName and pibFlags for the picture used when printing |
0x0112 | movie | movie data; ignored |
0x0115, 0x0117 | pictureTransparentExt, pictureTransparentExtMod | the extended transparent colour and its modification |
0x011A | pictureRecolor | the colour used to recolour the image |
0x011B, 0x011D | pictureRecolorExt, pictureRecolorExtMod | the extended recolour colour and its modification |
0x0116, 0x0118, 0x0119, 0x011C, 0x011E, 0x011F | reserved278, 280, 281, 284, 286, 287 | must be 0xFFFFFFFF; ignored |
0x013F | Blip Boolean Properties | fPicturePreserveGrays, fRewind, fLooping, fNoHitTestPicture, fPictureGray, fPictureBiLevel, fPictureActive (2.3.23.35) |
Defaults and ranges, Blip (2.3.23). cropFromTop, cropFromBottom, cropFromLeft, cropFromRight 0 (FixedPoint fractions of the image size; positive crops into the image, negative out from it). pib, pibName, pibPrint, pibPrintName, movie, pictureId 0; pibFlags and pibPrintFlags 0 (comment). pictureTransparent 0xFFFFFFFF. pictureContrast 0 to 0x7FFFFFFF, default 0x00010000 (no change). pictureBrightness 0xFFFF8000 to 0x00008000, default 0. pictureDblCrMod 0x100000F4 (ignored). pictureFillCrMod and pictureLineCrMod 0x20000000. pictureTransparentExt, pictureRecolor, pictureRecolorExt 0xFFFFFFFF; pictureTransparentExtMod and pictureRecolorExtMod 0x20000000. Reserved properties 278, 281, 284 and 287 are 0xFFFFFFFF and 280 and 286 zero, all ignored. In the Blip Boolean properties (fPicturePreserveGrays, fPictureGray, fPictureBiLevel, fNoHitTestPicture and the rest) every flag defaults to 0.
Unknown HTML (2.3.24), Web Component (2.3.25), Ink (2.3.26), Signature Line (2.3.27)
Properties of imported web pages, ink and signature lines. Most are string properties; the viewer does not use any of them.
| opid | Name | Specifies |
|---|---|---|
0x0402–0x040E | wzLineId, wzFillId, wzPictureId, wzPathId, wzShadowId, wzPerspectiveId, wzGtextId, wzFormulaeId, wzHandlesId, wzCalloutId, wzLockId, wzTextId, wzThreeDId | the identifier of the VML element of that name (stroke, fill, imagedata, path, shadow, skew, textpath, formulas, handles, callout, lock, textbox, extrusion) in [ISO/IEC29500-4] |
0x043F | Unknown HTML Boolean Properties | fOleFromHtml (the shape is imported from a VML shape), fFakeMaster (imported from a VML shapetype) (2.3.24.27) |
0x0680–0x0682 | webComponentWzHtml, webComponentWzName, webComponentWzUrl | the HTML content, the name and the URL of the web component |
0x06BF | Web Component Boolean Properties | fIsWebComponent (2.3.25.7) |
0x0700 | pInkData | the data that represents an ink shape (complex) |
0x073F | Ink Boolean Properties | fInkAnnotation, fHitTestInk, fRenderShape, fRenderInk (2.3.26.3) |
0x0781 | wzSigSetupId | the GUID of the signature line |
0x0782 | wzSigSetupProvId | the GUID of the provider that created the signature line |
0x0783, 0x0784, 0x0785 | wzSigSetupSuggSigner, wzSigSetupSuggSigner2, wzSigSetupSuggSignerEmail | the name, the title or other information, and the e-mail address of the suggested signer |
0x0786 | wzSigSetupSignInst | the signing instruction shown to the signer |
0x0787 | wzSigSetupAddlXml | additional information in XML from the provider |
0x0788 | wzSigSetupProvUrl | the URL of the provider |
0x07BF | Signature Line Boolean Properties | fSigSetupShowSignDate, fSigSetupAllowComments, fSigSetupSignInstSet, fIsSignatureLine (2.3.27.17) |
Defaults (2.3.24 to 2.3.27). Every identifier, name, URL, HTML, ink and signature string property (the wz… properties, webComponentWz…, pInkData, wzSigSetup…) defaults to 0 and must be 0 when fComplex is 0. Of the Boolean flags only fHitTestInk and fSigSetupShowSignDate default to 1; fOleFromHtml, fFakeMaster, fIsWebComponent, fInkAnnotation, fRenderShape, fRenderInk, fSigSetupAllowComments, fSigSetupSignInstSet (0 shows the default signing instruction, 1 the wzSigSetupSignInst text) and fIsSignatureLine default to 0.
The BLIP records
A BLIP record (OfficeArtBlip, [MS-ODRAW] 2.2.23) is a header (recVer 0), one or two
16-byte MD4 digests of the uncompressed picture data, and the picture. The first digest
rgbUid1 is always there; the second rgbUid2 exists when
recInstance is the odd value of its pair, and then rgbUid1 is ignored. A record may also be read from a BLIP
store entry (FBSE, 2.2.32) or from the complex data of a pib-type property.
recType | Record | recInstance (one UID / two UIDs) | After the digests | recLen |
|---|---|---|---|---|
0xF01A | OfficeArtBlipEMF (2.2.24) | 0x3D4 / 0x3D5 | OfficeArtMetafileHeader (34 bytes), then the EMF data | data + 50 / data + 66 |
0xF01B | OfficeArtBlipWMF (2.2.25) | 0x216 / 0x217 | metafile header, then the WMF data | data + 50 / data + 66 |
0xF01C | OfficeArtBlipPICT (2.2.26) | 0x542 / 0x543 | metafile header, then the Macintosh PICT data | data + 50 / data + 66 |
0xF01D, 0xF02A | OfficeArtBlipJPEG (2.2.27) | 0x46A / 0x46B (RGB), 0x6E2 / 0x6E3 (CMYK) | 1-byte tag (0xFF for external files), then the JPEG data | data + 17 / data + 33 |
0xF01E | OfficeArtBlipPNG (2.2.28) | 0x6E0 / 0x6E1 | tag, then the PNG data | data + 17 / data + 33 |
0xF01F | OfficeArtBlipDIB (2.2.29) | 0x7A8 / 0x7A9 | tag, then the DIB data | data + 17 / data + 33 |
0xF029 | OfficeArtBlipTIFF (2.2.30) | 0x6E4 / 0x6E5 | tag, then the TIFF data | data + 17 / data + 33 |
0xF02A is a second record type for the JPEG record of 2.2.27 (footnote 5 of the specification).
The OfficeArtMetafileHeader (2.2.31, 34 bytes) is: cbSize (4, the uncompressed size
of the metafile), rcBounds (16, a RECT: the clipping region), ptSize (8, a POINT: the size
in EMUs at which to draw the metafile), cbSave (4, the compressed size), compression (1: 0x00 DEFLATE
per RFC 1950, 0xFE none) and filter (1, must be 0xFE). The FBSE record is described in the record-type table above.
Enumerations used by the properties
The property table above names the properties; these are the values their enumerations take
([MS-ODRAW] 2.4.8 to 2.4.31). Each value is a 32-bit number stored in the property. Names drop the mso prefix.
| Enumeration (section) | Used by | Values |
|---|---|---|
| MSOBLIPTYPE (2.4.1) | OfficeArtFBSE btWin32, btMacOS | 0 error, 1 unknown, 2 EMF, 3 WMF, 4 Macintosh PICT, 5 JPEG, 6 PNG, 7 DIB, 0x11 TIFF, 0x12 JPEG in the YCCK or CMYK colour space |
| MSOWRAPMODE (2.4.3) | WrapText | 0 square (lines continue on the next line), 1 by points (the same as 0), 2 none (the text runs past the margin), 3 top-bottom and 4 through (undefined, ignore) |
| MSOANCHOR (2.4.4) | anchorText | 0 top, 1 middle, 2 bottom, 3 top centred, 4 middle centred, 5 bottom centred (the centred values also centre the text horizontally), 6 top baseline, 7 bottom baseline, 8 top centred baseline, 9 bottom centred baseline (6 to 9 should not be written; use 0, 2, 3, 5) |
| MSOTXFL (2.4.5) | txflTextFlow | 0 horizontal (tops up, glyphs left to right, lines downwards), 1 top to bottom (tops to the right, glyphs downwards, lines to the left), 2 bottom to top (tops to the left, glyphs upwards, lines to the right), 3 top to bottom (as 1), 4 horizontal (as 0), 5 vertical (as 1); 0 and 4 should not be written |
| MSOCDIR (2.4.6) | cdirFont | 0 no rotation (to the right), 1 90 degrees clockwise (down), 2 180 degrees (left), 3 270 degrees (up) |
| MSOTXDIR (2.4.7) | txdir | 0 left to right, 1 right to left, 2 from the text string (left to right when there is no text) |
| MSOBLIPFLAGS (2.4.8) | pibFlags, pibPrintFlags, fill and line BLIP flags | flags: blipflagComment 0, blipflagFile 1, blipflagURL 2 (these three are mutually exclusive: what the name property holds), blipflagDoNotSave 4 (needs LinkToFile), blipflagLinkToFile 8 (needs File or URL) |
| MSOSHAPEPATH (2.4.9) | shapePath | 0 lines (open), 1 lines closed, 2 curves (Bezier, open), 3 curves closed, 4 complex (the pSegmentInfo property must then exist) |
| MSOCXK (2.4.10) | cxk | 0 none, 1 segments (the edit points are the connection points), 2 custom, 3 rect (midpoints of the four sides) |
| MSOFILLTYPE (2.4.11) | fillType | 0 solid, 1 pattern, 2 texture, 3 picture, 4 shade (gradient between defined endpoints), 5 shade center (from the shape bounds), 6 shade shape (from the outline to a point inside), 7 shade scale (as 6, angle scaled by the aspect ratio), 8 shade title (interpreted by the host), 9 background |
| MSODZTYPE (2.4.12) | fillDztype and the line variants | 0 default (shape size used), 1 EMUs, 2 pixels, 3 FixedPoint fractions of the shape, 4 fixed aspect, 5 EMUs fixed aspect, 6 pixels fixed aspect, 7 shape fixed, 8 fixed aspect enlarge, 9 EMUs fixed big, 0xA pixels fixed big, 0xB shape fixed big |
| MSOLINETYPE (2.4.13) | lineType and the four side variants | 0 solid, 1 pattern, 2 texture |
| MSOLINESTYLE (2.4.14) | lineStyle and variants | 0 simple, 1 double, 2 thick-thin, 3 thin-thick, 4 triple |
| MSOLINEDASHING (2.4.15) | lineDashing and variants | 0 solid (pattern 1), 1 dash sys (1110), 2 dot sys (10), 3 dash-dot sys (111010), 4 dash-dot-dot sys (11101010), 5 dot GEL (1000), 6 dash GEL (1111000), 7 long dash GEL (11111111000), 8 dash-dot GEL (11110001000), 9 long dash-dot GEL (111111110001000), 0xA long dash-dot-dot GEL (1111111100010001000); each 1 is a line segment, each 0 a space |
| MSOLINEEND (2.4.16) | lineStartArrowhead, lineEndArrowhead and variants | 0 none, 1 arrow (triangle), 2 stealth, 3 diamond, 4 oval, 5 open (line arrow head), 6 chevron and 7 double chevron (both must be ignored) |
| MSOLINEENDWIDTH (2.4.17) | arrow width properties | 0 narrow, 1 medium, 2 wide |
| MSOLINEENDLENGTH (2.4.18) | arrow length properties | 0 short, 1 medium, 2 long |
| MSOLINEJOIN (2.4.19) | lineJoinStyle and variants | 0 bevel, 1 miter, 2 round |
| MSOLINECAP (2.4.20) | lineEndCapStyle and variants | 0 round (protrudes past the endpoint), 1 square (protrudes), 2 flat (ends at the endpoint) |
| MSOSHADOWTYPE (2.4.21) | shadowType | 0 offset, 1 double (offset only), 2 rich (offset plus a skew transformation relative to the drawing), 3 shape (skew relative to the shape), 4 drawing (cast on a drawing plane), 5 emboss or engrave (double shadow) |
| MSOXFORMTYPE (2.4.22) | perspectiveType | 0 absolute (centred on the shape), 1 shape (applied to the geometry), 2 drawing (in drawing space) |
| MSO3DRENDERMODE (2.4.23) | c3DRenderMode | 0 full render, 1 wireframe, 2 bounding cube |
| MSOCXSTYLE (2.4.25) | cxstyle | 0 straight, 1 bent (elbow), 2 curved, 3 none |
| MSOBWMODE (2.4.26) | bWMode, bWModeBW, bWModePureBW | 0 colour, 1 automatic, 2 grey scale, 3 light grey scale, 4 inverse grey, 5 grey outline, 6 black text and line, 7 high contrast, 8 black, 9 white, 0xA do not show |
| MSODGMT (2.4.27) | dgmt | 0 canvas, 1 org chart, 2 radial, 3 cycle, 4 stacked (pyramid), 5 Venn, 6 bull's eye, 0xFFF nil (none or invalid) |
| MSODGSLK (2.4.28) | OfficeArtFDGSL | 0 normal, 1 rotate, 2 reshape (curvature of lines), 7 crop |
| MSODGMLO (2.4.29) | dgmLayout, dgmLayoutMRU | 0 org chart standard, 1 org chart both hanging, 2 right hanging, 3 left hanging, 4 cycle, 5 radial, 6 stacked (pyramid), 7 Venn, 8 bull's eye, 0xFF nil (no shape) |
| MSOPATHTYPE (2.4.30) | segment types in pSegmentInfo | 0 line to (one segment per POINT), 1 curve to (three POINTs per cubic Bezier segment), 2 move to (starts a sub-path, one POINT, segment count 0), 3 close (straight line back to the start, segment count 1, no POINTs), 4 end (segment count 0, no POINTs), 5 escape (the entry is an MSOPATHESCAPEINFO), 6 client escape (the same, client specific) |
| MSOPATHESCAPE (2.4.31) | escape code in an escape segment | 0 extension (more POINTs for the next code), 1 angle ellipse to, 2 angle ellipse, 3 arc to, 4 arc, 5 clockwise arc to, 6 clockwise arc, 7 elliptical quadrant X, 8 elliptical quadrant Y, 9 quadratic Bezier, 0xA no fill, 0xB no line, 0xC auto line, 0xD auto curve, 0xE corner line, 0xF corner curve, 0x10 smooth line, 0x11 smooth curve, 0x12 symmetric line, 0x13 symmetric curve, 0x14 freeform, 0x15 fill colour (one POINT: x and y are the foreground and background OfficeArtCOLORREF), 0x16 line colour (one POINT, the same); 0x16 is the last value |
MSOSPT (2.4.24), the preset shape types (the recInstance of OfficeArtFSP). Hexadecimal:
0 NotPrimitive (custom geometry), 1 Rectangle, 2 RoundRectangle, 3 Ellipse, 4 Diamond, 5 IsocelesTriangle, 6 RightTriangle, 7 Parallelogram,
8 Trapezoid, 9 Hexagon, A Octagon, B Plus, C Star, D Arrow, E ThickArrow, F HomePlate, 10 Cube, 11 Balloon, 12 Seal, 13 Arc, 14 Line,
15 Plaque, 16 Can, 17 Donut, 18 TextSimple, 19 TextOctagon, 1A TextHexagon, 1B TextCurve, 1C TextWave, 1D TextRing, 1E TextOnCurve,
1F TextOnRing, 20 StraightConnector1, 21 to 24 BentConnector2 to 5, 25 to 28 CurvedConnector2 to 5, 29 to 2B Callout1 to 3,
2C to 2E AccentCallout1 to 3, 2F to 31 BorderCallout1 to 3, 32 to 34 AccentBorderCallout1 to 3, 35 Ribbon, 36 Ribbon2, 37 Chevron,
38 Pentagon, 39 NoSmoking, 3A Seal8, 3B Seal16, 3C Seal32, 3D WedgeRectCallout, 3E WedgeRRectCallout, 3F WedgeEllipseCallout, 40 Wave,
41 FoldedCorner, 42 LeftArrow, 43 DownArrow, 44 UpArrow, 45 LeftRightArrow, 46 UpDownArrow, 47 IrregularSeal1, 48 IrregularSeal2,
49 LightningBolt, 4A Heart, 4B PictureFrame, 4C QuadArrow, 4D LeftArrowCallout, 4E RightArrowCallout, 4F UpArrowCallout,
50 DownArrowCallout, 51 LeftRightArrowCallout, 52 UpDownArrowCallout, 53 QuadArrowCallout, 54 Bevel, 55 LeftBracket, 56 RightBracket,
57 LeftBrace, 58 RightBrace, 59 LeftUpArrow, 5A BentUpArrow, 5B BentArrow, 5C Seal24, 5D StripedRightArrow, 5E NotchedRightArrow,
5F BlockArc, 60 SmileyFace, 61 VerticalScroll, 62 HorizontalScroll, 63 CircularArrow, 64 NotchedCircularArrow, 65 UturnArrow,
66 CurvedRightArrow, 67 CurvedLeftArrow, 68 CurvedUpArrow, 69 CurvedDownArrow, 6A CloudCallout, 6B EllipseRibbon, 6C EllipseRibbon2,
6D to 87 the flow-chart shapes in this order: Process, Decision, InputOutput, PredefinedProcess, InternalStorage, Document, Multidocument,
Terminator, Preparation, ManualInput, ManualOperation, Connector, PunchedCard, PunchedTape, SummingJunction, Or, Collate, Sort, Extract,
Merge, OfflineStorage, OnlineStorage, MagneticTape, MagneticDisk, MagneticDrum, Display, Delay (6D to 87),
88 to AF the preset text shapes: PlainText, Stop, Triangle, TriangleInverted, Chevron, ChevronInverted, RingInside, RingOutside,
ArchUpCurve, ArchDownCurve, CircleCurve, ButtonCurve, ArchUpPour, ArchDownPour, CirclePour, ButtonPour, CurveUp, CurveDown,
CascadeUp, CascadeDown, Wave1, Wave2, Wave3, Wave4, Inflate, Deflate, InflateBottom, DeflateBottom, InflateTop, DeflateTop,
DeflateInflate, DeflateInflateDeflate, FadeRight, FadeLeft, FadeUp, FadeDown, SlantUp, SlantDown, CanUp, CanDown (88 to AF),
B0 FlowChartAlternateProcess, B1 FlowChartOffpageConnector, B2 Callout90, B3 AccentCallout90, B4 BorderCallout90, B5 AccentBorderCallout90,
B6 LeftRightUpArrow, B7 Sun, B8 Moon, B9 BracketPair, BA BracePair, BB Seal4, BC DoubleWave, BD to C8 ActionButton: Blank, Home, Help,
Information, ForwardNext, BackPrevious, End, Beginning, Return, Document, Sound, Movie; C9 HostControl, CA TextBox.
MSODGCID (2.4.2) is a list of about 600 toolbar and keyboard command identifiers (Paste 4, Select All 6, Group 0x12, ...) used only to customise toolbars; no record of a workbook holds one, so it is not transcribed. The value ranges and defaults of the individual properties ([MS-ODRAW] 2.3) are not transcribed either.
Checks
scripts/xls/artwalk.mjs joins the data of the MsoDrawing records of each
substream and walks the tree, checking every recType against the
table above, every recVer against the version the section demands and every
container’s recLen against its parent. It walked 95 drawing streams in the
real files of the sample folder (the encrypted files cannot be read), and all 95 close
exactly (no violation). Which Continue records belong to the drawing data had to be found
from the files: besides the Continue records directly after an MsoDrawing,
the Continue records that follow an Obj are drawing data, and so are the Continue
records that follow a TxO after its own ones (its cchText
characters of text, each Continue starting with a one-byte width flag, then its
cbRuns bytes of format runs). Without the last two rules 17 streams did not close: in
poi-ConditionalFormattingSamples.xls the second MsoDrawing of a sheet
is followed by its ClientTextbox header, a TxO with its text and runs, and then several
more Continue records of 8224 bytes each before the Obj; with them added the sum of the
record sizes equals the container’s recLen plus its header (added up by hand for three sheets; the walker checks all).
The grammar of 2.1.7.20 (MSODRAWING = MsoDrawing *Continue) alone does not say this, so
it is a finding from real files written by Apache POI’s test data (the program that wrote them was
not determined), not a rule of the specification. The drawing reader of this site does not join
Continue records at all: it reads each MsoDrawing record by itself.
No record type outside the table was met.
OfficeArt records defined by [MS-XLS]
Each begins with an 8-byte OfficeArtRecordHeader whose recVer and
recInstance are 0 and whose recType is 0xF010
(client anchor), 0xF011 (client data) or 0xF00D (client
text box).
OfficeArtClientAnchorSheet (2.5.193)
The position of a shape on a sheet; recType 0xF010,
recLen 18.
| Offset | Size | Field | Meaning |
|---|---|---|---|
0 | 8 | rh | The record header. |
8 | 2 | flags | Bit 0 fMove (the shape keeps its shape when cells move); bit 1 fSize (when cells are resized; must be 1 if fMove is); bits 2–4 reserved 0; bits 5–15 unused. |
10 | 2 | colL | Column of the cell under the top-left corner. |
12 | 2 | dxL | Signed x of that corner relative to the cell’s corner, in 1/1024 of the cell’s width. |
14 | 2 | rwT | Row of the cell under the top-left corner. |
16 | 2 | dyT | Signed y, in 1/256 of the cell’s height. |
18 | 2 | colR | Column under the bottom-right corner. |
20 | 2 | dxR | Signed x, in 1/1024 of the cell’s width. |
22 | 2 | rwB | Row under the bottom-right corner. |
24 | 2 | dyB | Signed y, in 1/256 of the cell’s height. |
OfficeArtClientAnchorChart (2.5.191)
The position of a shape in a chart: rh (recType
0xF010, recLen 0x12), 2 bytes of flags (bit 0 fMove
0; bit 1 fSize: 0 the shape resizes with the chart area, 1 it does not;
bits 2–4 reserved or undefined; 11 bits unused), then four signed 4-byte values
lx1, ly1, lx2, ly2: the upper-left
and lower-right corners relative to the upper-left corner of the chart area, in SPRC
(1/4000 of the chart’s width or height).
OfficeArtClientAnchorHF (2.5.192)
The size of a header or footer picture: rh (recType
0xF010, recLen 8), width (4, signed, pixels,
above 0) and height (4, signed, pixels, above 0).
OfficeArtClientData and OfficeArtClientTextbox
Each is just an 8-byte header with recLen 0: recType
0xF011 for the client data (2.5.194), after which the next record must be
Obj; 0xF00D for the client text box (2.5.195), after which the next record
must be TxO. Each must be the last structure in the rgChildRec of its
MsoDrawing.
Obj (0x005D)
The properties of one object (2.4.181). It is a sequence of subrecords, each of which
begins with a 2-byte ft and, for most, a 2-byte cb; the
ot field of the first (FtCmo) decides which others are present.
| Field | Size | Present |
|---|---|---|
cmo (FtCmo) | 22 | Always. |
gmo (FtGmo) | 6 | If and only if ot is 0 (group). |
pictFormat (FtCf), pictFlags (FtPioGrbit) | 6 each | If and only if ot is 8 (picture). |
cbls (FtCbls) | 16 | If and only if ot is 0x0B or 0x0C. |
rbo (FtRbo) | 10 | If and only if ot is 0x0C. |
sbs (FtSbs) | 24 | If and only if ot is 0x10, 0x11, 0x12 or 0x14. |
nts (FtNts) | 26 | If and only if ot is 0x19. |
macro (FtMacro) | variable | Optional: the macro run by the object. |
pictFmla (FtPictFmla) | variable | Only when ot is 8. |
linkFmla (ObjLinkFmla) | variable | Only when ot is 0x0B, 0x0C, 0x10, 0x11, 0x12 or 0x14: the range with the linked value. Its ft is 0x14 for 0x0B and 0x0C, 0x0E for the others. |
checkBox (FtCblsData) | 12 | If and only if ot is 0x0B or 0x0C. |
radioButton (FtRboData) | 8 | If and only if ot is 0x0C. |
edit (FtEdoData) | 12 | If and only if ot is 0x0D. |
list (FtLbsData) | variable | If and only if ot is 0x12 or 0x14. |
gbo (FtGboData) | 10 | If and only if ot is 0x13. |
reserved | 4 | Zero; present if and only if ot is not 0x12 or 0x14. |
FtCmo (2.5.143)
ft = 0x15, cb = 0x12, then:
| Offset | Size | Field | Meaning |
|---|---|---|---|
4 | 2 | ot | Object type: 0x00 group, 0x01 line, 0x02 rectangle, 0x03 oval, 0x04 arc, 0x05 chart, 0x06 text, 0x07 button, 0x08 picture, 0x09 polygon, 0x0B checkbox, 0x0C radio button, 0x0D edit box, 0x0E label, 0x0F dialog box, 0x10 spin control, 0x11 scrollbar, 0x12 list, 0x13 group box, 0x14 dropdown list, 0x19 note, 0x1E OfficeArt object. |
6 | 2 | id | The object identifier other records refer to; unique among the Obj records of the chart, macro and worksheet substreams. |
8 | 2 | flags | Bit 0 fLocked; 1 reserved; 2 fDefaultSize (the application chooses the size); 3 fPublished (a chart to publish; ignored when fPublishedBookItems is 0); 4 fPrint (included when printing); 5–6 unused; 7 fDisabled; 8 fUIObj (an auxiliary object only the application inserts); 9 fRecalcObj (update on load from the associated range; used only if pictFmla.key.fmlaListFillRange.cbFmla is not 0); 10–11 unused; 12 fRecalcObjAlways (update whenever a cell in the range changes; same condition); 13–15 unused. |
10 | 12 | unused | Three 4-byte unused fields. |
Fixed subrecords
| Structure | ft, cb | Fields after them |
|---|---|---|
| FtGmo (2.5.146) | 0x0006, 0x0002 | unused (2). |
| FtCf (2.5.142) | 0x0007, 0x0002 | cf (2): the Windows clipboard format of the picture: 0x0002 enhanced metafile, 0x0009 bitmap, 0xFFFF neither. |
| FtPioGrbit (2.5.151) | 0x0008, 0x0002 | 2 bytes of flags, from bit 0: fAutoPict (aspect ratio kept in all views and printing), fDde (pictFmla is a DDE reference), fPrintCalc (update on print), fIcon, fCtl (an ActiveX control; not with fDde), fPrstm (0 data in an embedding storage, 1 in the controls stream Ctls), unused, fCamera (a camera picture), fDefaultSize (0 size set explicitly, 1 not), fAutoLoad (the OLE server loads the data when the workbook opens), 6 unused bits. |
| FtCbls (2.5.140) | 0x000A, 0x000C | Three unused 4-byte fields. |
| FtRbo (2.5.152) | 0x000B, 0x0006 | unused (4) and unused (2). |
| FtSbs (2.5.154) | 0x000C, 0x0014 | unused (4); signed 2-byte iVal (current value, between iMin and iMax), iMin, iMax, dInc (change per click on a minor increment, 0 or more), dPage (per click on a page region, 0 or more); fHoriz (2: 0 vertical, 1 horizontal); dxScroll (2, signed, the scrollbar’s width in pixels, 0 or more); 2 bytes of flags: fDraw (displayed), fDrawSliderOnly, fTrackElevator (tracks a drag of the thumb), fNo3d, 12 unused. |
| FtNts (2.5.149) | 0x000D, 0x0016 | guid (16, the comment’s GUID), fSharedNote (2: 0 not shared, 1 shared), unused (4). |
| FtCblsData (2.5.141) | 0x0012, 0x0008 | fChecked (2: 0 unchecked, 1 checked, 2 mixed, only for a checkbox, ot 0x0B); accel (2, the accelerator key as a Unicode character, 0 for none, used only in dialog sheets); reserved (2); 2 bytes of flags: fNo3d and 15 unused bits. |
| FtRboData (2.5.153) | 0x0011, 0x0004 | idRadNext (2, an ObjId: the next radio button in the group; 0 or its own id means none) and fFirstBtn (2: 1 first in its group). |
| FtEdoData (2.5.144) | 0x0010, 0x0008 | ivtEdit (2: validation: 0 any string, 1 integer, 2 number, 3 range reference, 4 formula); fMultiLine (2); fVScroll (2); id (2, an ObjId of the associated list control, 0 for none). |
| FtGboData (2.5.145) | 0x000F, 0x0006 | accel (2, dialog sheets only); reserved (2); 2 bytes: fNo3d and 15 unused bits. |
FtLbsData (2.5.147)
A list or drop-down list. ft = 0x0013, then cbFContinued (2:
0 means nothing else follows; otherwise at least the size of the rest of the
structure when it fits in one record, and when it is continued in Continue records,
the size of this record’s share minus 1), then:
| Size | Field | Meaning |
|---|---|---|
| variable | fmla | An ObjFmla: the range holding the list items. |
| 2 | cLines | Number of items, at most 0x7FFF. |
| 2 | iSel | One-based index of the first selected item; 0 for none; at most cLines. |
| 2 | flags | Bit 0 fUseCB (lct is used); 1 fValidPlex (rgLines present); 2 fValidIds (idEdit is used); 3 fNo3d; bits 4–5 wListSelType (0 one item, 1 several by clicking each, 2 several by Ctrl-click); 6 unused; 7 reserved; bits 8–15 lct (the behaviour class when fUseCB: 0x00 regular sheet dropdown, 0x01 PivotTable page-field dropdown, 0x03 AutoFilter dropdown (worksheets and macro sheets only), 0x05 AutoComplete dropdown, 0x06 data-validation list dropdown (worksheets and macro sheets only), 0x07 PivotTable row or column field dropdown, 0x09 dropdown for a table’s Total Row). |
| 2 | idEdit | An ObjId of the associated edit box; 0, or fValidIds 0, means none. |
| variable | dropData | An LbsDropData, present if and only if the Obj’s ot is 0x14. |
| variable | rgLines | cLines XLUnicodeStrings of at most 255 characters each, wholly inside one record (Continue records are used when needed); present if and only if fValidPlex is 1. |
| variable | bsels | cLines one-byte Booleans, 1 for each item in the multiple selection; present if and only if wListSelType is not 0. |
LbsDropData (2.5.171): 2 bytes of flags
(bits 0–1 wStyle: 0 combo dropdown, 1 combo edit dropdown, 2 simple
dropdown, just the button; bit 2 unused; bit 3 fFiltered; 12 bits unused),
cLine (2, lines shown, at most 0x7FFF), dxMin (2, the
smallest dropdown width in pixels, at most 0x7FFF), str
(XLUnicodeString, the current value) and one unused byte if the size of
str in bytes is odd.
Formula subrecords
| Structure | Layout |
|---|---|
| FtMacro (2.5.148) | ft = 0x0004, then an ObjFmla naming a macro: a name defined by an Lbl whose fProc is 1. |
| ObjFmla (2.5.187) | cbFmla (2, the size of the rest, even), fmla (an ObjectParsedFormula, present if and only if cbFmla is above 0), embedInfo (a PictFmlaEmbedInfo, present if and only if the structure is an FtPictFmla and fmla starts with a PtgTbl) and padding to cbFmla (ignore). |
| ObjLinkFmla (2.5.189) | ft (2: 0x0014 or 0x000E as above) and an ObjFmla. |
| FtPictFmla (2.5.150) | ft = 0x0009, cb (2, the length of the rest); fmla (an ObjFmla: with fDde a name from an ExternName with fOle 1; with fCamera a range; otherwise cce is 5 and the formula is a PtgTbl and 4 ignored bytes); lPosInCtlStm (4: present when the formula starts with a PtgTbl; if fPrstm is 0 the data is in an embedding storage named “MBD” plus the 8-digit hexadecimal value, if 1 it is the offset of the data in the controls stream); cbBufInCtlStm (4: the size of the data in the controls stream, present if and only if fPrstm is 1); key (a PictFmlaKey, present if and only if fCtl is 1). |
| PictFmlaKey (2.5.203) | cbKey (4), keyBuf (cbKey bytes: the ActiveX control’s runtime licence key), fmlaLinkedCell (an ObjFmla for the range whose first cell is linked to the control’s selection; empty if none) and fmlaListFillRange (an ObjFmla for the range that fills the control’s content; its cbFmla must be 0 unless the ActiveX control’s type library has a bindable property with GUID {0C733A7C-2A1C-11CE-ADE5-00AA0044773D}). |
| PictFmlaEmbedInfo (2.5.202) | ttb (1, 0x03), cbClass (1, the length of strClass in bytes), reserved (1), strClass (XLUnicodeStringNoCch: the class name of the ActiveX control, OLE object or camera picture; present if and only if cbClass is non-zero). |
| ObjId (2.5.188) | id (2): the cmo.id of an Obj in the same drawing; 0 references none. |
TxO (0x01B6)
The text in a text box or form control (2.4.329). If cchText is not 0,
Continue records follow: first those holding the text (each an
XLUnicodeStringNoCch with part of the string, the total being cchText
characters), then those holding the formatting runs (a TxORuns, split across Continue
records if longer than 8,224 bytes).
| Size | Field | Meaning |
|---|---|---|
| 2 | flags | Bit 0 reserved; bits 1–3 hAlignment (1 left, 2 centred, 3 right, 4 justify, 7 justify distributed); bits 4–6 vAlignment (1 top, 2 middle, 3 bottom, 4 justify, 7 justify distributed); bits 7–8 reserved; bit 9 fLockText; bits 10–13 reserved; bit 14 fJustLast (justify applies to the last line too, in some versions); bit 15 fSecretEdit (a password box that hides what is typed). |
| 2 | rot | Text orientation: 0 none, 1 stacked or vertical, 2 rotated 90° counter-clockwise, 3 rotated 90° clockwise. |
| 2 + 4 | reserved4, reserved5 | Present if and only if the preceding Obj’s ot is not 0, 5, 7, 11, 12 or 14; zero. |
| 6 | controlInfo | A ControlInfo, present if and only if ot is 0, 5, 7, 11, 12 or 14. |
| 2 | cchText | Characters of text in the Continue records. |
| 2 | cbRuns | Bytes of formatting runs: 0 if cchText is 0, otherwise at least 16 and a multiple of 8. |
| 2 | ifntEmpty | A FontIndex: the font used when cchText is 0. |
| variable | fmla | An ObjFmla: the formula for the text. |
ControlInfo (2.5.61), for form controls on a dialog
sheet: 2 bytes of flags (bit 0 fDefault dismisses the dialog and does the
default action; 1 fHelp loads context help; 2 fCancel
dismisses and does nothing; 3 fDismiss dismisses; each 0 unless the control
is a button; 12 reserved bits), accel1 (2, signed, the accelerator
character; 0 for none) and reserved (2, zero).
TxORuns (2.5.272) is an array of Run structures, of
cbRuns / 8 - 1 elements, then lastRun, which is present only
in the last Continue record. A Run (2.5.226) is a FormatRun
(ich 2, the zero-based index of the first character of the run, strictly
increasing and at most cchText; ifnt 2, a FontIndex),
followed by 4 unused bytes. TxOLastRun (2.5.271): cchText
(2, equal to the TxO’s), unused (2) and unused (4).
BkHim (0x00E9)
The background image of a sheet (2.4.19): cf (2, signed: 0x0009 a bitmap,
as in [MSDN-BMP]; 0x000E the native format of another application, which cannot be
processed directly), reserved (2, 0x0001), lcb (4, signed, at least 1:
the size of the image) and imageBlob (lcb bytes of image
data).
Source
[MS-XLS] Excel Binary File Format (.xls) Structure, v20250819, sections 2.4.19, 2.4.93, 2.4.170–2.4.172, 2.4.179, 2.4.181, 2.4.187, 2.4.329, 2.5.61, 2.5.140–2.5.154, 2.5.171, 2.5.186–2.5.189, 2.5.191–2.5.195, 2.5.202–2.5.203, 2.5.226, 2.5.271–2.5.272 and the substream ABNF; [MS-ODRAW] v20250819 sections 2.2.1 to 2.2.49 and 2.3.1 for the record tree and the BLIP records, and 2.3.2 to 2.3.27 for the property numbers and names, and 2.4.1, 2.4.3 to 2.4.31 for the enumerations; the defaults and ranges of the value properties of every group are transcribed from [MS-ODRAW] 2.3.2 to 2.3.27. Not covered: the toolbar command list 2.4.2, the contents of ObjectParsedFormula, and NoteRR.
Divergence from the specification
- Obj without a leading FtCmo. The specification puts FtCmo first.
xlrd ignores an Obj record whose first subrecord is not an FtCmo of 18 bytes, as an
“antique or corrupt” record (
xlrd/sheet.pylines 1920–1923), and in BIFF7 and earlier ignores every Obj (line 1908). The viewer reads the FtCmo when the first subrecord type is0x15and otherwise skips the record. - Byte after the Note author. The specification ends the BIFF8
Note with one unused byte. xlrd accepts 0 or 1 bytes after the author and says
Google Spreadsheet omits the byte (
xlrd/sheet.pylines 2001–2005). The viewer stops after the author, so both forms read the same. - Note before BIFF8. The older Note holds the whole comment text
(8-bit characters, up to 2,048 per record, the remainder in further Note records that
begin
0xFFFF) and has no Obj or TxO ([Rentz] section 5.70;xlrd/sheet.pylines 1969–1993). The viewer reads this form too. - TxO text. xlrd takes the text from the Continue records after a
TxO, one flag byte (0 for 8-bit, 1 for UTF-16) per record, then the runs as 8-byte
entries (
xlrd/sheet.pylines 2014–2056), which is the layout of the specification.
Key programs
- xlrd –
xlrd/sheet.py:handle_obj(lines 1907–1961),handle_note(1963–2012),handle_txo(2014–2056). - Excel – the producer; not available here.
See also
- Charts
- BIFF5 records
- XLSX (drawings and comments in the newer format)
Note (0x001C)
A cell comment (2.4.179). In the Workbook stream, within a worksheet, dialog sheet or macro sheet substream, the body is a NoteSh; in a revision log it is a NoteRR (a revision of a comment; its layout is not given here). The comment text is in the TxO belonging to the Obj named by
idObj.rowcolfShow(the comment is always shown); 2 reserved; 3 unused; 4–6 reserved; 7fRwHidden(the row is hidden); 8fColHidden(the column is hidden); 9–15 reserved.idObjstAuthor