nsMsgNavigationType 编辑
The nsMsgNavigationType
interface contains constants used for message navigation in Thunderbird. For example to move forward a message, you would call:
// assuming gDBView is a global nsIMsgDBView var resultId = new Object(); var resultIndex = new Object(); var threadIndex = new Object(); gDBView.viewNavigate(Components.interfaces.nsMsgNavigationType.nextMessage, resultId, resultIndex, threadIndex, true);
The nsMsgNavigationType
interface is defined as a global variable in Thunderbird:
var nsMsgViewCommandType = Components.interfaces.nsMsgViewCommandType;
mailnews/base/public/nsIMsgDBView.idl
Scriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3)Constants
Name | Value | Description |
firstMessage | 1 | Go to the first message in the view. |
nextMessage | 2 | Go to the next message in the view. Will wrap around if the wrap flag is set to true . |
previousMessage | 3 | Go to the previous message in the view. Will wrap around if the wrap flag is set to true . |
lastMessage | 4 | Go to the last message in the view. |
toggleThreadKilled | 5 | Must match nsMsgViewCommandType toggleThreadKilled . |
firstUnreadMessage | 6 | Go to the first unread message in the view. |
nextUnreadMessage | 7 | Go to the next unread message in the view. Will wrap around if the wrap flag is set to true . |
previousUnreadMessage | 8 | Go to the previous unread message in the view. Will wrap around if the wrap flag is set to true . |
lastUnreadMessage | 9 | Go to the last unread message in the view. |
nextUnreadThread | 10 | |
nextUnreadFolder | 11 | |
nextFolder | 12 | |
readMore | 13 | |
back | 15 | Go back to the previous visited message |
forward | 16 | Go forward to the previous visited message |
firstFlagged | 17 | |
nextFlagged | 18 | |
previousFlagged | 19 | |
firstNew | 20 | |
editUndo | 21 | |
editRedo | 22 | |
toggleSubthreadKilled | 23 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论