HighlightedRange allows to highlight a range of cells.
Inheritance: IDisposable
Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="p_Grid"></param>
        public Selection(GridVirtual p_Grid)
        {
            m_Grid          = p_Grid;
            mRangeHighlight = new HighlightedRange(m_Grid);

            DevAge.Drawing.Border border1 = new DevAge.Drawing.Border(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, 0);
            DevAge.Drawing.Border border2 = new DevAge.Drawing.Border(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, 0);

            mRangeHighlight.Border = new DevAge.Drawing.RectangleBorder(border2, border1, border2, border1);
            m_SelectionColor       = Color.FromArgb(75, Color.FromKnownColor(KnownColor.Highlight));
        }
Example #2
0
 /// <summary>
 /// Removes the first occurrence of a specific HighlightedRange from this HighlightedRangeCollection.
 /// </summary>
 /// <param name="value">
 /// The HighlightedRange value to remove from this HighlightedRangeCollection.
 /// </param>
 public virtual void Remove(HighlightedRange value)
 {
     this.List.Remove(value);
 }
Example #3
0
 /// <summary>
 /// Inserts an element into the HighlightedRangeCollection at the specified index
 /// </summary>
 /// <param name="index">
 /// The index at which the HighlightedRange is to be inserted.
 /// </param>
 /// <param name="value">
 /// The HighlightedRange to insert.
 /// </param>
 public virtual void Insert(int index, HighlightedRange value)
 {
     this.List.Insert(index, value);
 }
Example #4
0
 /// <summary>
 /// Return the zero-based index of the first occurrence of a specific value
 /// in this HighlightedRangeCollection
 /// </summary>
 /// <param name="value">
 /// The HighlightedRange value to locate in the HighlightedRangeCollection.
 /// </param>
 /// <returns>
 /// The zero-based index of the first occurrence of the _ELEMENT value if found;
 /// -1 otherwise.
 /// </returns>
 public virtual int IndexOf(HighlightedRange value)
 {
     return(this.List.IndexOf(value));
 }
Example #5
0
 /// <summary>
 /// Determines whether a specfic HighlightedRange value is in this HighlightedRangeCollection.
 /// </summary>
 /// <param name="value">
 /// The HighlightedRange value to locate in this HighlightedRangeCollection.
 /// </param>
 /// <returns>
 /// true if value is found in this HighlightedRangeCollection;
 /// false otherwise.
 /// </returns>
 public virtual bool Contains(HighlightedRange value)
 {
     return(this.List.Contains(value));
 }
Example #6
0
 /// <summary>
 /// Adds an instance of type HighlightedRange to the end of this HighlightedRangeCollection.
 /// </summary>
 /// <param name="value">
 /// The HighlightedRange to be added to the end of this HighlightedRangeCollection.
 /// </param>
 public virtual void Add(HighlightedRange value)
 {
     this.List.Add(value);
 }