Gtk.Widget.GetClipboard Method
Returns the clipboard object for the given selection to be used with widget.

Syntax

public Clipboard GetClipboard (Gdk.Atom selection)

Parameters

selection
A Gdk.Atom which identifies the clipboard to use. Gdk.Selection.Clipboard gives the default clipboard, another common value is Gdk.Selection.Primary, which gives the primary X selection.

Returns

The appropiate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.

Remarks

widget must have a Gdk.Display associated with it, so must be attached to a toplevel window.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)