nsIBoxObject 编辑

layout/xul/base/public/nsIBoxObject.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

To get an instance, use the boxObject property.

Where possible, element.getClientRects and element.getBoundingClientRect should be used instead.

Method overview

wstring getLookAndFeelMetric(in wstring propertyName); Obsolete since Gecko 1.9
wstring getProperty(in wstring propertyName);
nsISupports getPropertyAsSupports(in wstring propertyName);
void removeProperty(in wstring propertyName);
void setProperty(in wstring propertyName, in wstring propertyValue);
void setPropertyAsSupports(in wstring propertyName, in nsISupports value);

Attributes

AttributeTypeDescription
elementnsIDOMElementRead only.
firstChildnsIDOMElementThe first child of the box, in box-ordinal-group order. Read only.
heightlongThe height of the box, in CSS pixels. Read only.
lastChildnsIDOMElementThe last child of the box, in box-ordinal-group order. Read only.
layoutManagernsIBoxLayoutManagerObsolete since Gecko 1.9
nextSiblingnsIDOMElementThe next sibling of the box, in box-ordinal-group order. Read only.
paintManagernsIBoxPaintManagerObsolete since Gecko 1.9
parentBoxnsIDOMElementThe parent of the box, in box-ordinal-group order. Read only.
previousSiblingnsIDOMElementThe previous sibling of the box, in box-ordinal-group order. Read only.
screenXlongThe x coordinate of the box relative to the screen origin, in device pixels. Read only.
screenYlongThe y coordinate of the box relative to the screen origin, in device pixels. Read only.
widthlongThe width of the box, in CSS pixels. Read only.
xlongThe x coordinate of the box, in CSS pixels. Read only.
ylongThe y coordinate of the box, in CSS pixels. Read only.

Methods

getLookAndFeelMetric()

Obsolete since Gecko 1.9 (Firefox 3)
wstring getLookAndFeelMetric(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

getProperty()

wstring getProperty(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

getPropertyAsSupports()

nsISupports getPropertyAsSupports(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

removeProperty()

void removeProperty(
  in wstring propertyName
);
Parameters
propertyName

setProperty()

void setProperty(
  in wstring propertyName,
  in wstring propertyValue
);
Parameters
propertyName
propertyValue

setPropertyAsSupports()

void setPropertyAsSupports(
  in wstring propertyName,
  in nsISupports value
);
Parameters
propertyName
value

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:49 次

字数:7642

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文