nsISupportsArray 编辑

xpcom/ds/nsISupportsArray.idlScriptable Please add a summary to this article. Inherits from: nsICollection Last changed in Gecko 1.7

Method overview

boolean AppendElements(in nsISupportsArray aElements); Violates the XPCOM interface guidelines
nsISupportsArray clone();
void Compact();
void DeleteElementAt(in unsigned long aIndex);
void DeleteLastElement(in nsISupports aElement);
nsISupports ElementAt(in unsigned long aIndex); Violates the XPCOM interface guidelines
boolean EnumerateBackwards(in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); Violates the XPCOM interface guidelines
boolean EnumerateForwards(in nsISupportsArrayEnumFunc aFunc, in voidPtr aData); Violates the XPCOM interface guidelines
boolean Equals([const] in nsISupportsArray other); Violates the XPCOM interface guidelines
long GetIndexOf(in nsISupports aPossibleElement);
long GetIndexOfStartingAt(in nsISupports aPossibleElement, in unsigned long aStartIndex);
long GetLastIndexOf(in nsISupports aPossibleElement);
long IndexOf([const] in nsISupports aPossibleElement); Violates the XPCOM interface guidelines
long IndexOfStartingAt([const] in nsISupports aPossibleElement, in unsigned long aStartIndex); Violates the XPCOM interface guidelines
boolean InsertElementAt(in nsISupports aElement, in unsigned long aIndex); Violates the XPCOM interface guidelines
boolean InsertElementsAt(in nsISupportsArray aOther, in unsigned long aIndex); Violates the XPCOM interface guidelines
long LastIndexOf([const] in nsISupports aPossibleElement); Violates the XPCOM interface guidelines
boolean MoveElement(in long aFrom, in long aTo); Violates the XPCOM interface guidelines
boolean RemoveElementAt(in unsigned long aIndex); Violates the XPCOM interface guidelines
boolean RemoveElementsAt(in unsigned long aIndex, in unsigned long aCount); Violates the XPCOM interface guidelines
boolean RemoveLastElement([const] in nsISupports aElement); Violates the XPCOM interface guidelines
boolean ReplaceElementAt(in nsISupports aElement, in unsigned long aIndex); Violates the XPCOM interface guidelines
boolean SizeTo(in long aSize); Violates the XPCOM interface guidelines

Methods

Violates the XPCOM interface guidelines

AppendElements()

boolean AppendElements(
  in nsISupportsArray aElements
);
Parameters
aElements
Return value

 

clone()

nsISupportsArray clone();
Parameters

None.

Return value

 

Compact()

void Compact();
Parameters

None.

DeleteElementAt()

void DeleteElementAt(
  in unsigned long aIndex
);
Parameters
aIndex

DeleteLastElement()

void DeleteLastElement(
  in nsISupports aElement
);
Parameters
aElement
Violates the XPCOM interface guidelines

ElementAt()

nsISupports ElementAt(
  in unsigned long aIndex
);
Parameters
aIndex
Return value

 

EnumerateBackwards()

[notxpcom, noscript] boolean EnumerateBackwards(
  in nsISupportsArrayEnumFunc aFunc,
  in voidPtr aData
);
Parameters
aFunc
aData
Return value

 

EnumerateForwards()

[notxpcom, noscript] boolean EnumerateForwards(
  in nsISupportsArrayEnumFunc aFunc,
  in voidPtr aData
);
Parameters
aFunc
aData
Return value

 

Violates the XPCOM interface guidelines

Equals()

boolean Equals(
  [const] in nsISupportsArray other
);
Parameters
other
Return value

 

GetIndexOf()

long GetIndexOf(
  in nsISupports aPossibleElement
);
Parameters
aPossibleElement
Return value

 

GetIndexOfStartingAt()

long GetIndexOfStartingAt(
  in nsISupports aPossibleElement,
  in unsigned long aStartIndex
);
Parameters
aPossibleElement
aStartIndex
Return value

 

GetLastIndexOf()

long GetLastIndexOf(
  in nsISupports aPossibleElement
);
Parameters
aPossibleElement
Return value

 

Violates the XPCOM interface guidelines

IndexOf()

long IndexOf(
  [const] in nsISupports aPossibleElement
);
Parameters
aPossibleElement
Return value

 

Violates the XPCOM interface guidelines

IndexOfStartingAt()

long IndexOfStartingAt(
  [const] in nsISupports aPossibleElement,
  in unsigned long aStartIndex
);
Parameters
aPossibleElement
aStartIndex
Return value

 

Violates the XPCOM interface guidelines

InsertElementAt()

boolean InsertElementAt(
  in nsISupports aElement,
  in unsigned long aIndex
);
Parameters
aElement
aIndex
Return value

 

Violates the XPCOM interface guidelines

InsertElementsAt()

boolean InsertElementsAt(
  in nsISupportsArray aOther,
  in unsigned long aIndex
);
Parameters
aOther
aIndex
Return value

 

Violates the XPCOM interface guidelines

LastIndexOf()

long LastIndexOf(
  [const] in nsISupports aPossibleElement
);
Parameters
aPossibleElement
Return value

 

Violates the XPCOM interface guidelines

MoveElement()

boolean MoveElement(
  in long aFrom,
  in long aTo
);
Parameters
aFrom
aTo
Return value

 

Violates the XPCOM interface guidelines

RemoveElementAt()

boolean RemoveElementAt(
  in unsigned long aIndex
);
Parameters
aIndex
Return value

 

Violates the XPCOM interface guidelines

RemoveElementsAt()

boolean RemoveElementsAt(
  in unsigned long aIndex,
  in unsigned long aCount
);
Parameters
aIndex
aCount
Return value

 

Violates the XPCOM interface guidelines

RemoveLastElement()

boolean RemoveLastElement(
  [const] in nsISupports aElement
);
Parameters
aElement
Return value

 

Violates the XPCOM interface guidelines

ReplaceElementAt()

boolean ReplaceElementAt(
  in nsISupports aElement,
  in unsigned long aIndex
);
Parameters
aElement
aIndex
Return value

 

Violates the XPCOM interface guidelines

SizeTo()

boolean SizeTo(
  in long aSize
);
Parameters
aSize
Return value

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

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

发布评论

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

词条统计

浏览:54 次

字数:12835

最后编辑:7年前

编辑次数:0 次

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