gnome-sharp 2.20.0.0 2.24.0.0 Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. Gnome.CanvasItem Line canvas item A canvas item for drawing lines. This canvas item uses a structure so one or multiple joined lined segments can be drawn with a single item. `// LineExample.cs - Displays triangle using gnome canvas // Compile: mcs -r gtk-sharp.dll -r gnome-sharp.dll LineExample.cs namespace GnomeSamples { using System; using Gtk; using Gnome; public class LineExample { public static int Main (string[] args) { Application.Init (); Gtk.Window win = new Gtk.Window ("Canvas line example"); win.DeleteEvent += new DeleteEventHandler (Window_Delete); Canvas canvas = new Canvas (); win.Add (canvas); CanvasLine line = new CanvasLine (canvas.Root ()); line.Points = new CanvasPoints (new double[]{40,0, 0,80, 80,80, 40,0}); win.ShowAll (); Application.Run (); return 0; } static void Window_Delete (object obj, DeleteEventArgs args) { Application.Quit (); args.RetVal = true; } } }`
- Constructor
  2.24.0.0
  To be added
  To be added
- Constructor
  2.24.0.0
  System.Obsolete
  a
  Protected Constructor.
  Chain to this constructor if you have manually registered a native value for your subclass.
- Constructor
  2.24.0.0
  The that this item belongs to.
  Creates a new line
- Constructor
  2.24.0.0
  Pointer to the C object.
  Internal constructor

  This is an internal constructor, and should not be used by user code.

- Property
  2.24.0.0
  GLib.Property("arrow_shape_a")
  System.Double Distance from tip of arrowhead to center. Distance from tip of arrowhead to center.
- Property
  2.24.0.0
  GLib.Property("arrow_shape_b")
  System.Double Distance from tip of arrowhead to trailing point, measured along the shaft. Distance from tip of arrowhead to trailing point, measured along shaft.
- Property
  2.24.0.0
  GLib.Property("arrow_shape_c")
  System.Double Distance of arrowhead trailing points from outside edge of shaft. Distance of arrowhead trailing points from outside edge of shaft.
- Property
  2.24.0.0
  GLib.Property("cap_style")
  Gdk.CapStyle Determines how the ends of lines are drawn (the line cap style). the line cap style
- Property
  2.24.0.0
  GLib.Property("fill_color")
  System.String X color specification for line. X color specification for the line
- Property
  2.24.0.0
  GLib.Property("fill_color_gdk")
  Gdk.Color The to draw the line with. the line color
- Property
  2.24.0.0
  GLib.Property("fill_color_rgba")
  System.UInt32 Line color with an alpha component (in the format 0xRRGGBBAA). the line color
- Property
  2.24.0.0
  GLib.Property("fill_stipple")
  Gdk.Drawable Stipple pattern for the line. Stipple pattern for the line.
- Property
  2.24.0.0
  GLib.Property("first_arrowhead")
  System.Boolean Specifies whether to draw an arrowhead on the first point of the line. whether to draw an arrowhead on the first point of the line.
- Property
  2.24.0.0
  GLib.GType GType Property. a Returns the native value for .
- Property
  2.24.0.0
  GLib.Property("join_style")
  Gdk.JoinStyle Vertex join style for line segments Vertex join style

  ( to join by extending each line to meet at an angle, to join by a circular arc, and to join by a straight line which makes an equal angle with each line)

- Property
  2.24.0.0
  GLib.Property("last_arrowhead")
  System.Boolean Specifies whether to draw an arrowhead on the last point of the line. whether to draw an arrowhead on the last point of the line. To be added
- Property
  2.24.0.0
  GLib.Property("line_style")
  Gdk.LineStyle Line dash style. Line dash style
- Property
  2.24.0.0
  GLib.Property("points")
  Gnome.CanvasPoints a pointer. This can be created by a call to the constructor. a pointer.
- Property
  2.24.0.0
  GLib.Property("smooth")
  System.Boolean Specifies whether to smooth the line using parabolic splines. Whether to smooth the line using parabolic splines
- Property
  2.24.0.0
  GLib.Property("spline_steps")
  System.UInt32 Specifies the number of steps to use when rendering curves. the number of steps to use when rendering curves.
- Property
  2.24.0.0
  GLib.Property("width_pixels")
  System.UInt32 Width of the line in pixels. The line width will not be scaled when the canvas zoom factor changes. width of the line in pixels. To be added
- Property
  2.24.0.0
  GLib.Property("width_units")
  System.Double Width of the line in canvas units. The line width will be scaled when the canvas zoom factor changes. width of the line in canvas units