Search Results for

    Show / Hide Table of Contents

    Class GraphObjList

    A collection class containing a list of TextObj objects to be displayed on the graph.

    Inheritance
    Object
    List<GraphObj>
    GraphObjList
    Implements
    IList<GraphObj>
    ICollection<GraphObj>
    IEnumerable<GraphObj>
    IList
    ICollection
    IEnumerable
    ICloneable
    Inherited Members
    System.Collections.Generic.List<ZedGraph.GraphObj>.System.Collections.IList.get_Item(System.Int32)
    System.Collections.Generic.List<ZedGraph.GraphObj>.System.Collections.IList.set_Item(System.Int32, System.Object)
    List<GraphObj>.Add(GraphObj)
    List<GraphObj>.AddRange(IEnumerable<GraphObj>)
    List<GraphObj>.AsReadOnly()
    List<GraphObj>.BinarySearch(Int32, Int32, GraphObj, IComparer<GraphObj>)
    List<GraphObj>.BinarySearch(GraphObj)
    List<GraphObj>.BinarySearch(GraphObj, IComparer<GraphObj>)
    List<GraphObj>.Clear()
    List<GraphObj>.Contains(GraphObj)
    List<GraphObj>.ConvertAll<TOutput>(Converter<GraphObj, TOutput>)
    List<GraphObj>.CopyTo(Int32, GraphObj[], Int32, Int32)
    List<GraphObj>.CopyTo(GraphObj[])
    List<GraphObj>.CopyTo(GraphObj[], Int32)
    List<GraphObj>.Exists(Predicate<GraphObj>)
    List<GraphObj>.Find(Predicate<GraphObj>)
    List<GraphObj>.FindAll(Predicate<GraphObj>)
    List<GraphObj>.FindIndex(Int32, Int32, Predicate<GraphObj>)
    List<GraphObj>.FindIndex(Int32, Predicate<GraphObj>)
    List<GraphObj>.FindIndex(Predicate<GraphObj>)
    List<GraphObj>.FindLast(Predicate<GraphObj>)
    List<GraphObj>.FindLastIndex(Int32, Int32, Predicate<GraphObj>)
    List<GraphObj>.FindLastIndex(Int32, Predicate<GraphObj>)
    List<GraphObj>.FindLastIndex(Predicate<GraphObj>)
    List<GraphObj>.ForEach(Action<GraphObj>)
    List<GraphObj>.GetEnumerator()
    List<GraphObj>.GetRange(Int32, Int32)
    List<GraphObj>.IndexOf(GraphObj)
    List<GraphObj>.IndexOf(GraphObj, Int32)
    List<GraphObj>.IndexOf(GraphObj, Int32, Int32)
    List<GraphObj>.Insert(Int32, GraphObj)
    List<GraphObj>.InsertRange(Int32, IEnumerable<GraphObj>)
    List<GraphObj>.LastIndexOf(GraphObj)
    List<GraphObj>.LastIndexOf(GraphObj, Int32)
    List<GraphObj>.LastIndexOf(GraphObj, Int32, Int32)
    List<GraphObj>.Remove(GraphObj)
    List<GraphObj>.RemoveAll(Predicate<GraphObj>)
    List<GraphObj>.RemoveAt(Int32)
    List<GraphObj>.RemoveRange(Int32, Int32)
    List<GraphObj>.Reverse()
    List<GraphObj>.Reverse(Int32, Int32)
    List<GraphObj>.Sort()
    List<GraphObj>.Sort(IComparer<GraphObj>)
    List<GraphObj>.Sort(Comparison<GraphObj>)
    List<GraphObj>.Sort(Int32, Int32, IComparer<GraphObj>)
    List<GraphObj>.IEnumerable<GraphObj>.GetEnumerator()
    List<GraphObj>.ICollection.CopyTo(Array, Int32)
    List<GraphObj>.IEnumerable.GetEnumerator()
    List<GraphObj>.IList.Add(Object)
    List<GraphObj>.IList.Contains(Object)
    List<GraphObj>.IList.IndexOf(Object)
    List<GraphObj>.IList.Insert(Int32, Object)
    List<GraphObj>.IList.Remove(Object)
    List<GraphObj>.ToArray()
    List<GraphObj>.TrimExcess()
    List<GraphObj>.TrueForAll(Predicate<GraphObj>)
    List<GraphObj>.Capacity
    List<GraphObj>.Count
    List<GraphObj>.Item[Int32]
    List<GraphObj>.ICollection<GraphObj>.IsReadOnly
    List<GraphObj>.ICollection.IsSynchronized
    List<GraphObj>.ICollection.SyncRoot
    List<GraphObj>.IList.IsFixedSize
    List<GraphObj>.IList.IsReadOnly
    List<GraphObj>.IList.Item[Int32]
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class GraphObjList : List<GraphObj>, IList<GraphObj>, ICollection<GraphObj>, IEnumerable<GraphObj>, IList, ICollection, IEnumerable, ICloneable

    Constructors

    | Improve this Doc View Source

    GraphObjList()

    Default constructor for the GraphObjList collection class

    Declaration
    public GraphObjList()
    | Improve this Doc View Source

    GraphObjList(GraphObjList)

    The Copy Constructor

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

    The GraphObjList object from which to copy

    Properties

    | Improve this Doc View Source

    Item[String]

    Indexer to access the specified GraphObj object by its Tag. Note that the Tag must be a String type for this method to work.

    Declaration
    public GraphObj this[string tag] { get; }
    Parameters
    Type Name Description
    String tag

    The String type tag to search for.

    Property Value
    Type Description
    GraphObj

    A GraphObj object reference.

    See Also
    IndexOfTag(String)

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public GraphObjList Clone()
    Returns
    Type Description
    GraphObjList

    A new, independent copy of this class

    | Improve this Doc View Source

    Draw(Graphics, PaneBase, Single, ZOrder)

    Render text to the specified Graphics device by calling the Draw method of each GraphObj object in the collection.

    Declaration
    public void Draw(Graphics g, PaneBase pane, float scaleFactor, ZOrder zOrder)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    PaneBase pane

    A reference to the PaneBase object that is the parent or owner of this object.

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    ZOrder zOrder

    A ZOrder enumeration that controls the placement of this GraphObj relative to other graphic objects. The order of GraphObj's with the same ZOrder value is control by their order in this GraphObjList.

    Remarks

    This method is normally only called by the Draw method of the parent GraphPane object.

    | Improve this Doc View Source

    FindPoint(PointF, PaneBase, Graphics, Single, out Int32)

    Determine if a mouse point is within any GraphObj, and if so, return the index number of the the GraphObj.

    Declaration
    public bool FindPoint(PointF mousePt, PaneBase pane, Graphics g, float scaleFactor, out int index)
    Parameters
    Type Name Description
    PointF mousePt

    The screen point, in pixel coordinates.

    PaneBase pane

    A reference to the PaneBase object that is the parent or owner of this object.

    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    Int32 index

    The index number of the TextObj that is under the mouse point. The TextObj object is accessible via the GraphObjList indexer property.

    Returns
    Type Description
    Boolean

    true if the mouse point is within a GraphObj bounding box, false otherwise.

    See Also
    FindNearestObject(PointF, Graphics, out Object, out Int32)
    | Improve this Doc View Source

    IndexOfTag(String)

    Return the zero-based position index of the GraphObj with the specified Tag.

    Declaration
    public int IndexOfTag(string tag)
    Parameters
    Type Name Description
    String tag

    The String tag that is in the Tag attribute of the item to be found.

    Returns
    Type Description
    Int32

    The zero-based index of the specified GraphObj, or -1 if the GraphObj is not in the list

    Remarks

    In order for this method to work, the Tag property must be of type String.

    | Improve this Doc View Source

    Move(Int32, Int32)

    Move the position of the object at the specified index to the new relative position in the list.

    Declaration
    public int Move(int index, int relativePos)
    Parameters
    Type Name Description
    Int32 index

    The zero-based index of the object to be moved.

    Int32 relativePos

    The relative number of positions to move the object. A value of -1 will move the object one position earlier in the list, a value of 1 will move it one position later. To move an item to the beginning of the list, use a large negative value (such as -999). To move it to the end of the list, use a large positive value.

    Returns
    Type Description
    Int32

    The new position for the object, or -1 if the object was not found.

    Remarks

    For Graphic type objects, this method controls the Z-Order of the items. Objects at the beginning of the list appear in front of objects at the end of the list.

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

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

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    Object

    A deep copy of this object

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX