layoutGridType property
Specifies the type of grid used for rendering the text content of an element.
Syntax
Integer value = object.put_layoutGridType( v);Integer value = object.get_layoutGridType(* sType);
Property values
Type: BSTR
loose (loose)
Default. Grid used for Japanese and Korean characters. In this mode, a constant width increment is applied to characters as follows: Wide characters and narrow kana characters are incremented to obtain an exact grid fit, as specified by the IHTMLRuleStyle2::layoutGridChar property. Other narrow characters, except connected and cursive characters, are incremented by half of the increment amount applied to wide characters. Other characters, including connected and cursive characters, are not incremented, and behave as if no character grid is set.
strict (strict)
Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid. Other characters are rendered as usual, as though the IHTMLRuleStyle2::layoutGridMode attribute is set to none or line for text spans containing these characters. This mode also disables special text justification and character width adjustments normally applied to the element. Finally, if there is no line-break opportunity in a text span that exceeds the line boundary, the text is pushed to the next line and the last part of the previous line is left blank.
fixed (fixed)
Grid used for monospaced layout. The layout rules are as follows: All noncursive characters are treated as equal; every character is centered within a single grid space by default. Runs of cursive characters are treated as strips the same as in a strict grid. Justification or any other character-width changing behaviors are disabled.
String format
loose | strict | fixed
CSS information
Applies To | All elements |
Media | visual |
Inherited | 1 |
Initial Value |
Standards information
There are no standards that apply here.
Remarks
Windows Internet Explorer 8. The IHTMLRuleStyle2::layoutGridType attribute is an extension to CSS, and can be used as a synonym for layout-grid-type in IE8 Standards mode.
Web documents in Asian languages, such as Chinese or Japanese, usually create a page layout for characters using a one- or two-dimensional grid. You can use the IHTMLRuleStyle2::layoutGrid attribute to incorporate this layout into Web documents.
The IHTMLRuleStyle2::layoutGridType attribute applies only to block-level elements.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |