hasLayout property

[This documentation is preliminary and is subject to change.]

Gets a value that indicates whether the object has layout.

Syntax

HRESULT value = object.get_hasLayout(VARIANT_BOOL* p);

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (false)

Default. Object does not have layout.

VARIANT_TRUE (true)

Object has layout.

String format

VARIANT_FALSE | VARIANT_FALSE

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Remarks

The following table shows Cascading Style Sheets (CSS) properties and corresponding values that, if set, cause an element to have a layout.

CSS property Value
display inline-block
height any value
styleFloat left or right
position absolute
width any value
writingMode tb-rl
zoom any value

 

By setting the contentEditable property to true, you can cause an element to have a layout.

The following elements always have layout: body, img, HTMLInputElement, table and td.

As of Microsoft Internet Explorer 6, when the !DOCTYPE declaration specifies strict standards compliance, inline elements ignore the width property and the height property. By setting the width property and the height property, you cannot cause the element to have a layout.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Build date: 1/23/2012