Gets or sets whether the text layout grid uses two dimensions.
HRESULT IHTMLCSSStyleDeclaration::get_layoutGridMode(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_layoutGridMode(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
both Default. Both the
linegrid modes are enabled. This setting is necessary to fully enable the layout grid on an element.
none No grid is used. line Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout. char Only a character grid is used. This is recommended for use with block-level elements, such as a blockQuote, where the line grid is intended to be disabled.
Returns S_OK if successful, or an error value otherwise.
Internet Explorer 8. The -ms-layout-grid-mode attribute is an extension to CSS, and can be used as a synonym for layout-grid-mode in IE8 Standards mode.
Web documents in Asian languages, such as Chinese or Japanese, usually create a document layout for characters using a one- or two-dimensional grid. You can use the -ms-layout-grid attribute to incorporate this layout into Web documents.