<Type Name="CanvasLine" FullName="Gnome.CanvasLine">
  <TypeSignature Language="C#" Maintainer="auto" Value="public class CanvasLine : Gnome.CanvasItem" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CanvasLine extends Gnome.CanvasItem" />
  <AssemblyInfo>
    <AssemblyName>gnome-sharp</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
    <AssemblyVersion>2.20.0.0</AssemblyVersion>
    <AssemblyVersion>2.24.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>Gnome.CanvasItem</BaseTypeName>
  </Base>
  <Interfaces>
  </Interfaces>
  <Docs>
    <summary>Line canvas item</summary>
    <remarks>
      A canvas item for drawing lines. This canvas item uses a
      <see cref="T:Gnome.CanvasPoints" /> structure so one or multiple joined lined
      segments can be drawn with a single <see cref="T:Gnome.CanvasLine" /> item.
    
<example><code lang="C#">
// 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;
       }
    }
}

  </code></example></remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="protected CanvasLine ();" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>To be added</summary>
        <remarks>To be added</remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="protected CanvasLine (GLib.GType gtype);" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(valuetype GLib.GType gtype) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue />
      <Parameters>
        <Parameter Name="gtype" Type="GLib.GType" />
      </Parameters>
      <Docs>
        <param name="gtype">a <see cref="T:GLib.GType" /></param>
        <summary>Protected Constructor.</summary>
        <remarks>Chain to this constructor if you have manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public CanvasLine (Gnome.CanvasGroup group);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Gnome.CanvasGroup group) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="group" Type="Gnome.CanvasGroup" />
      </Parameters>
      <Docs>
        <param name="group">
          The <see cref="T:Gnome.CanvasGroup" /> that this item
          belongs to.
        </param>
        <summary>Creates a new line</summary>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public CanvasLine (IntPtr raw);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="raw" Type="System.IntPtr" />
      </Parameters>
      <Docs>
        <param name="raw">Pointer to the C object.</param>
        <summary>Internal constructor</summary>
        <remarks>
          <para>This is an internal constructor, and should not be used by user code.</para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="ArrowShapeA">
      <MemberSignature Language="C#" Value="public double ArrowShapeA { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 ArrowShapeA" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("arrow_shape_a")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Distance from tip of arrowhead to center.</summary>
        <value>Distance from tip of arrowhead to center.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="ArrowShapeB">
      <MemberSignature Language="C#" Value="public double ArrowShapeB { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 ArrowShapeB" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("arrow_shape_b")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>
          Distance from tip of arrowhead to trailing point, measured
          along the shaft.
        </summary>
        <value>Distance from tip of arrowhead to trailing point, measured along shaft.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="ArrowShapeC">
      <MemberSignature Language="C#" Value="public double ArrowShapeC { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 ArrowShapeC" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("arrow_shape_c")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Distance of arrowhead trailing points from outside edge of shaft.</summary>
        <value>Distance of arrowhead trailing points from outside edge of shaft.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="CapStyle">
      <MemberSignature Language="C#" Value="public Gdk.CapStyle CapStyle { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gdk.CapStyle CapStyle" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("cap_style")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gdk.CapStyle</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Determines how the ends of lines are drawn (the line cap style).</summary>
        <value>the line cap style</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="FillColor">
      <MemberSignature Language="C#" Value="public string FillColor { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string FillColor" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("fill_color")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>X color specification for line.</summary>
        <value>X color specification for the line</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="FillColorGdk">
      <MemberSignature Language="C#" Value="public Gdk.Color FillColorGdk { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gdk.Color FillColorGdk" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("fill_color_gdk")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gdk.Color</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>The <see cref="T:Gdk.Color" /> to draw the line with.</summary>
        <value>the line color</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="FillColorRgba">
      <MemberSignature Language="C#" Value="public uint FillColorRgba { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance unsigned int32 FillColorRgba" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("fill_color_rgba")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.UInt32</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Line color with an alpha component (in the format 0xRRGGBBAA).</summary>
        <value>the line color</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="FillStipple">
      <MemberSignature Language="C#" Value="public Gdk.Drawable FillStipple { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class Gdk.Drawable FillStipple" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("fill_stipple")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gdk.Drawable</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Stipple pattern for the line.</summary>
        <value>Stipple pattern for the line.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="FirstArrowhead">
      <MemberSignature Language="C#" Value="public bool FirstArrowhead { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool FirstArrowhead" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("first_arrowhead")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Specifies whether to draw an arrowhead on the first point of the line.</summary>
        <value>whether to draw an arrowhead on the first point of the line.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="GType">
      <MemberSignature Language="C#" Value="public static GLib.GType GType { get; }" />
      <MemberSignature Language="ILAsm" Value=".property valuetype GLib.GType GType" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>GLib.GType</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>GType Property.</summary>
        <value>a <see cref="T:GLib.GType" /></value>
        <remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gnome.CanvasLine" />.</remarks>
      </Docs>
    </Member>
    <Member MemberName="JoinStyle">
      <MemberSignature Language="C#" Value="public Gdk.JoinStyle JoinStyle { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gdk.JoinStyle JoinStyle" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("join_style")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gdk.JoinStyle</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Vertex join style for line segments</summary>
        <value>Vertex join style</value>
        <remarks>
          <para>
            (<see cref="F:Gdk.JoinStyle.Miter" /> to join by extending
            each line to meet at an angle, <see cref="F:Gdk.JoinStyle.Round" /> to join by a circular arc,
            and <see cref="F:Gdk.JoinStyle.Bevel" /> to join by a
            straight line which makes an equal angle with each line)
          </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="LastArrowhead">
      <MemberSignature Language="C#" Value="public bool LastArrowhead { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool LastArrowhead" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("last_arrowhead")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Specifies whether to draw an arrowhead on the last point of the line.</summary>
        <value>whether to draw an arrowhead on the last point of the line.</value>
        <remarks>To be added</remarks>
      </Docs>
    </Member>
    <Member MemberName="LineStyle">
      <MemberSignature Language="C#" Value="public Gdk.LineStyle LineStyle { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype Gdk.LineStyle LineStyle" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("line_style")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gdk.LineStyle</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Line dash style.</summary>
        <value>Line dash style</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Points">
      <MemberSignature Language="C#" Value="public Gnome.CanvasPoints Points { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class Gnome.CanvasPoints Points" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("points")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>Gnome.CanvasPoints</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>a <see cref="T:Gnome.CanvasPoints" /> pointer. This
        can be created by a call to the <see cref="C:Gnome.CanvasPoints" /> constructor.
        </summary>
        <value>a <see cref="T:Gnome.CanvasPoints" /> pointer.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Smooth">
      <MemberSignature Language="C#" Value="public bool Smooth { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool Smooth" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("smooth")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Specifies whether to smooth the line using parabolic splines.</summary>
        <value>Whether to smooth the line using parabolic splines</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="SplineSteps">
      <MemberSignature Language="C#" Value="public uint SplineSteps { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance unsigned int32 SplineSteps" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("spline_steps")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.UInt32</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Specifies the number of steps to use when rendering curves.</summary>
        <value>the number of steps to use when rendering curves.</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="WidthPixels">
      <MemberSignature Language="C#" Value="public uint WidthPixels { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance unsigned int32 WidthPixels" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("width_pixels")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.UInt32</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Width of the line in pixels. The line width will not be scaled when the canvas zoom factor changes.</summary>
        <value>width of the line in pixels.</value>
        <remarks>To be added</remarks>
      </Docs>
    </Member>
    <Member MemberName="WidthUnits">
      <MemberSignature Language="C#" Value="public double WidthUnits { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 WidthUnits" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.24.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>GLib.Property("width_units")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Parameters>
      </Parameters>
      <Docs>
        <summary>Width of the line in canvas units. The line width will be scaled when the canvas zoom factor changes.</summary>
        <value>width of the line in canvas units</value>
        <remarks>
        </remarks>
      </Docs>
    </Member>
  </Members>
</Type>
