nsIClipboardHelper

IID:44073a98-1dd2-11b2-8600-d0ae854dbe93
Inherits From:nsISupports

Helper service for common uses of nsIClipboard.

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/widget/clipboardhelper;1"].
            getService(Components.interfaces.nsIClipboardHelper);

This interface is implemented by the following components:


Methods

void copyString ( AString string ) void copyStringToClipboard ( AString string , PRInt32 clipboardID )

void copyString ( AString string )

Copy string to (default) clipboard

Arguments:
string: , the string to copy to the clipboard

void copyStringToClipboard ( AString string , PRInt32 clipboardID )

Copy string to given clipboard

Arguments:
string: , the string to copy to the clipboard
clipboardID: , the ID of the clipboard to copy to (eg. kSelectionClipboard -- see nsIClipboard.idl)

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com