Gets or sets the size of the character grid used for rendering the text content of an element.
HRESULT IHTMLRuleStyle2::get_layoutGridChar(VARIANT *p);HRESULT IHTMLRuleStyle2::put_layoutGridChar(VARIANT v);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives one of the values listed in Possible Values.
- VARIANT of type VT_BSTR that specifies one of the values listed in Possible Values.
none Default. No character grid is set. auto Largest character in the font of the element is used to set the character grid. length Floating-point number, followed by an absolute units designator (
pc) or a relative units designator (
px). For more information about the supported length units, see CSS Length Units Reference.
percentage Integer, followed by a percent sign (%). The value is a percentage derived from the dimensions of the parent object.
Returns S_OK if successful, or an error value otherwise.
Windows Internet Explorer 8. The -ms-layout-grid-char attribute is an extension to CSS, and can be used as a synonym for layout-grid-char in IE8 Standards mode.
The visual effects of the -ms-layout-grid-char attribute are similar to the IHTMLCurrentStyle::lineHeight property.
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.
The -ms-layout-grid-char attribute applies only to block-level elements.Note For this property to have an effect, the -ms-layout-grid-mode attribute must be set to