Search Results for

    Show / Hide Table of Contents

    Class StickItem

    Encapsulates a curve type that is displayed as a series of vertical "sticks", one at each defined point.

    Inheritance
    System.Object
    CurveItem
    LineItem
    StickItem
    Implements
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    Inherited Members
    LineItem._symbol
    LineItem._line
    LineItem.Symbol
    LineItem.Line
    LineItem.schema2
    LineItem.Draw(Graphics, GraphPane, Int32, Single)
    LineItem.DrawLegendKey(Graphics, GraphPane, RectangleF, Single)
    LineItem.MakeUnique(ColorSymbolRotator)
    LineItem.GetCoords(GraphPane, Int32, String)
    CurveItem._isX2Axis
    CurveItem._isY2Axis
    CurveItem._yAxisIndex
    CurveItem._isVisible
    CurveItem._isSelected
    CurveItem._isSelectable
    CurveItem._isOverrideOrdinal
    CurveItem._points
    CurveItem.Tag
    CurveItem.schema
    CurveItem.Label
    CurveItem.Color
    CurveItem.IsVisible
    CurveItem.IsSelected
    CurveItem.IsSelectable
    CurveItem.IsOverrideOrdinal
    CurveItem.IsX2Axis
    CurveItem.IsY2Axis
    CurveItem.YAxisIndex
    CurveItem.IsBar
    CurveItem.IsPie
    CurveItem.IsLine
    CurveItem.NPts
    CurveItem.Points
    CurveItem.Item[Int32]
    CurveItem.Link
    CurveItem.AddPoint(Double, Double)
    CurveItem.AddPoint(PointPair)
    CurveItem.Clear()
    CurveItem.RemovePoint(Int32)
    CurveItem.GetXAxis(GraphPane)
    CurveItem.GetYAxis(GraphPane)
    CurveItem.GetYAxisIndex(GraphPane)
    CurveItem.MakeUnique()
    CurveItem.GetRange(Double, Double, Double, Double, Boolean, Boolean, GraphPane)
    CurveItem.BaseAxis(GraphPane)
    CurveItem.ValueAxis(GraphPane)
    CurveItem.GetBarWidth(GraphPane)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class StickItem : LineItem, ICloneable, ISerializable
    Remarks

    The sticks run from the zero value of the Y axis, to the Y point defined in each PointPair of the IPointList (see Points). The properties of the sticks are defined in the Line property. Normally, the Symbol is not visible. However, if you manually enable the Symbol using the IsVisible property, the symbols will be drawn at the "Z" value from each PointPair (see Z).

    Constructors

    | Improve this Doc View Source

    StickItem(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected StickItem(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    A System.Runtime.Serialization.SerializationInfo instance that defines the serialized data

    System.Runtime.Serialization.StreamingContext context

    A System.Runtime.Serialization.StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    StickItem(String)

    Create a new StickItem, specifying only the legend Label.

    Declaration
    public StickItem(string label)
    Parameters
    Type Name Description
    System.String label

    The label that will appear in the legend.

    | Improve this Doc View Source

    StickItem(String, Double[], Double[], Color)

    Create a new StickItem using the specified properties.

    Declaration
    public StickItem(string label, double[] x, double[] y, Color color)
    Parameters
    Type Name Description
    System.String label

    The label that will appear in the legend.

    System.Double[] x

    An array of double precision values that define the independent (X axis) values for this curve

    System.Double[] y

    An array of double precision values that define the dependent (Y axis) values for this curve

    System.Drawing.Color color

    A System.Drawing.Color value that will be applied to the Line and Symbol properties.

    | Improve this Doc View Source

    StickItem(String, Double[], Double[], Color, Single)

    Create a new StickItem using the specified properties.

    Declaration
    public StickItem(string label, double[] x, double[] y, Color color, float lineWidth)
    Parameters
    Type Name Description
    System.String label

    The label that will appear in the legend.

    System.Double[] x

    An array of double precision values that define the independent (X axis) values for this curve

    System.Double[] y

    An array of double precision values that define the dependent (Y axis) values for this curve

    System.Drawing.Color color

    A System.Drawing.Color value that will be applied to the Line and Symbol properties.

    System.Single lineWidth

    The width (in points) to be used for the Line. This width is scaled based on CalcScaleFactor(). Use a value of zero to hide the line (see IsVisible).

    | Improve this Doc View Source

    StickItem(String, IPointList, Color)

    Create a new StickItem using the specified properties.

    Declaration
    public StickItem(string label, IPointList points, Color color)
    Parameters
    Type Name Description
    System.String label

    The label that will appear in the legend.

    IPointList points

    A IPointList of double precision value pairs that define the X and Y values for this curve

    System.Drawing.Color color

    A System.Drawing.Color value that will be applied to the Line and Symbol properties.

    | Improve this Doc View Source

    StickItem(String, IPointList, Color, Single)

    Create a new StickItem using the specified properties.

    Declaration
    public StickItem(string label, IPointList points, Color color, float lineWidth)
    Parameters
    Type Name Description
    System.String label

    The label that will appear in the legend.

    IPointList points

    A IPointList of double precision value pairs that define the X and Y values for this curve

    System.Drawing.Color color

    A System.Drawing.Color value that will be applied to the Line and Symbol properties.

    System.Single lineWidth

    The width (in points) to be used for the Line. This width is scaled based on CalcScaleFactor(). Use a value of zero to hide the line (see IsVisible).

    | Improve this Doc View Source

    StickItem(StickItem)

    The Copy Constructor

    Declaration
    public StickItem(StickItem rhs)
    Parameters
    Type Name Description
    StickItem rhs

    The StickItem object from which to copy

    Fields

    | Improve this Doc View Source

    schema3

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema3 = 10
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public StickItem Clone()
    Returns
    Type Description
    StickItem

    A new, independent copy of this class

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a System.Runtime.Serialization.SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    A System.Runtime.Serialization.SerializationInfo instance that defines the serialized data

    System.Runtime.Serialization.StreamingContext context

    A System.Runtime.Serialization.StreamingContext instance that contains the serialized data

    Overrides
    LineItem.GetObjectData(SerializationInfo, StreamingContext)

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

    Implement the System.ICloneable interface in a typesafe manner by just calling the typed version of Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    System.Object

    A deep copy of this object

    Implements

    System.ICloneable
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX