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

Description

Gets the width of the element.

Syntax

elementInstance.OffsetWidth

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.OffsetWidth;

Notes

It's a wrapper of the MSHTML.IHTMLElement.offsetWidth.

The OffsetWidth means the relative width from the element of the offsetParent property.

Specifically, a numerical value that obtained by adding the "padding", "border", and "Height", of the CSS, in pixels.

Links for reference

Copyright © Rice All rights reserved.