context: // This file was generated by the Gtk# code generator.
  // Any changes made will be lost if regenerated.
  
  namespace Gnome {
  
  	using System;
  	using System.Collections;
  	using System.Runtime.InteropServices;
  
  #region Autogenerated code
  	public class CanvasRichText : Gnome.CanvasItem {
  
  		[Obsolete]
  		protected CanvasRichText(GLib.GType gtype) : base(gtype) {}
  		public CanvasRichText(IntPtr raw) : base(raw) {}
  
  		protected CanvasRichText() : base(IntPtr.Zero)
  		{
  			CreateNativeObject (new string [0], new GLib.Value [0]);
  		}
  
  		[GLib.Property ("pixels_inside_wrap")]
  		public int PixelsInsideWrap {
  			get {
  				GLib.Value val = GetProperty ("pixels_inside_wrap");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("pixels_inside_wrap", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("pixels_below_lines")]
  		public int PixelsBelowLines {
  			get {
  				GLib.Value val = GetProperty ("pixels_below_lines");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("pixels_below_lines", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("cursor_blink")]
  		public bool CursorBlink {
  			get {
  				GLib.Value val = GetProperty ("cursor_blink");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("cursor_blink", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("right_margin")]
  		public int RightMargin {
  			get {
  				GLib.Value val = GetProperty ("right_margin");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("right_margin", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("editable")]
  		public bool Editable {
  			get {
  				GLib.Value val = GetProperty ("editable");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("editable", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("indent")]
  		public int Indent {
  			get {
  				GLib.Value val = GetProperty ("indent");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("indent", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("justification")]
  		public Gtk.Justification Justification {
  			get {
  				GLib.Value val = GetProperty ("justification");
  				Gtk.Justification ret = (Gtk.Justification) (Enum) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value((Enum) value);
  				SetProperty("justification", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("x")]
  		public double X {
  			get {
  				GLib.Value val = GetProperty ("x");
  				double ret = (double) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("x", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("y")]
  		public double Y {
  			get {
  				GLib.Value val = GetProperty ("y");
  				double ret = (double) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("y", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("pixels_above_lines")]
  		public int PixelsAboveLines {
  			get {
  				GLib.Value val = GetProperty ("pixels_above_lines");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("pixels_above_lines", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("direction")]
  		public Gtk.DirectionType Direction {
  			get {
  				GLib.Value val = GetProperty ("direction");
  				Gtk.DirectionType ret = (Gtk.DirectionType) (Enum) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value((Enum) value);
  				SetProperty("direction", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("text")]
  		public string Text {
  			get {
  				GLib.Value val = GetProperty ("text");
  				string ret = (string) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("text", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("width")]
  		public double Width {
  			get {
  				GLib.Value val = GetProperty ("width");
  				double ret = (double) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("width", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("left_margin")]
  		public int LeftMargin {
  			get {
  				GLib.Value val = GetProperty ("left_margin");
  				int ret = (int) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("left_margin", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("anchor")]
  		public Gtk.AnchorType Anchor {
  			get {
  				GLib.Value val = GetProperty ("anchor");
  				Gtk.AnchorType ret = (Gtk.AnchorType) (Enum) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value((Enum) value);
  				SetProperty("anchor", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("wrap_mode")]
  		public Gtk.WrapMode WrapMode {
  			get {
  				GLib.Value val = GetProperty ("wrap_mode");
  				Gtk.WrapMode ret = (Gtk.WrapMode) (Enum) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value((Enum) value);
  				SetProperty("wrap_mode", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("height")]
  		public double Height {
  			get {
  				GLib.Value val = GetProperty ("height");
  				double ret = (double) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("height", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("grow_height")]
  		public bool GrowHeight {
  			get {
  				GLib.Value val = GetProperty ("grow_height");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("grow_height", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("visible")]
  		public bool Visible {
  			get {
  				GLib.Value val = GetProperty ("visible");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("visible", val);
  				val.Dispose ();
  			}
  		}
  
  		[GLib.Property ("cursor_visible")]
  		public bool CursorVisible {
  			get {
  				GLib.Value val = GetProperty ("cursor_visible");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("cursor_visible", val);
  				val.Dispose ();
  			}
  		}
  
  		[DllImport("gnomecanvas-2", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gnome_canvas_rich_text_copy_clipboard(IntPtr raw);
  
  		public void CopyClipboard() {
  			gnome_canvas_rich_text_copy_clipboard(Handle);
  		}
  
  		[DllImport("gnomecanvas-2", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gnome_canvas_rich_text_get_buffer(IntPtr raw);
  
  		[DllImport("gnomecanvas-2", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gnome_canvas_rich_text_set_buffer(IntPtr raw, IntPtr buffer);
  
  		public Gtk.TextBuffer Buffer { 
  			get {
  
gt: 				IntPtr raw_ret = gnome_canvas_rich_text_get_buffer(Handle);