nsIBoxObject 编辑
layout/xul/base/public/nsIBoxObject.idl
Scriptable 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
Attribute | Type | Description |
element | nsIDOMElement | Read only. |
firstChild | nsIDOMElement | The first child of the box, in box-ordinal-group order. Read only. |
height | long | The height of the box, in CSS pixels. Read only. |
lastChild | nsIDOMElement | The last child of the box, in box-ordinal-group order. Read only. |
layoutManager | nsIBoxLayoutManager | Obsolete since Gecko 1.9 |
nextSibling | nsIDOMElement | The next sibling of the box, in box-ordinal-group order. Read only. |
paintManager | nsIBoxPaintManager | Obsolete since Gecko 1.9 |
parentBox | nsIDOMElement | The parent of the box, in box-ordinal-group order. Read only. |
previousSibling | nsIDOMElement | The previous sibling of the box, in box-ordinal-group order. Read only. |
screenX | long | The x coordinate of the box relative to the screen origin, in device pixels. Read only. |
screenY | long | The y coordinate of the box relative to the screen origin, in device pixels. Read only. |
width | long | The width of the box, in CSS pixels. Read only. |
x | long | The x coordinate of the box, in CSS pixels. Read only. |
y | long | The 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论