Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  ClientWidth
element class : ClientWidth getter

Description

Gets the width of the element, in pixels.

Syntax

elementInstance.ClientWidth

Arguments

None

Return value

ClassDescription
intThe width of the element, in pixels.

Sample code

//anyElement is an any instance of element type.

int width = anyElement.ClientWidth;

Notes

It's a wrapper of the MSHTML.IHTMLElement2.clientWidth.

Including padding, but not including margin, border, or scroll bar.

Links for reference

Copyright © Rice All rights reserved.