Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

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

ドキュメントのタグと貢献者

 このページの貢献者: teoli, trevorh, Sheppy, Smi, Mook, bcombee, Yanmorin
 最終更新者: trevorh,