Пример #1
0
            /// <summary>
            /// Initializes a new instance of the HitInfo class.
            /// </summary>
            /// <param name="itemIndex">Index of the item.</param>
            /// <param name="checkBoxHit">if set to true the mouse cursor is over a checkbox.</param>
            /// <param name="group">The group header hit.</param>
            /// <param name="column">The column header hit</param>
            /// <param name="columnSeparator">The column separator.</param>
            /// <param name="subItemIndex">Index of the sub item.</param>
            /// <param name="paneBorder">if set to true the mouse cursor is over the left-pane border.</param>
            /// <param name="inItemArea">if set to true the mouse is in the item area.</param>
            /// <param name="inHeaderArea">if set to true the mouse cursor is in the column header area.</param>
            /// <param name="inPaneArea">if set to true the mouse cursor is in the left-pane area.</param>
            private HitInfo(int itemIndex, bool checkBoxHit, ImageListViewGroup group, ImageListViewColumnHeader column,
                            ImageListViewColumnHeader columnSeparator, int subItemIndex,
                            bool paneBorder, bool inItemArea, bool inHeaderArea, bool inPaneArea)
            {
                ItemIndex       = itemIndex;
                CheckBoxHit     = checkBoxHit;
                Group           = group;
                Column          = column;
                ColumnSeparator = columnSeparator;
                SubItemIndex    = subItemIndex;

                InItemArea   = inItemArea;
                InHeaderArea = inHeaderArea;

                InPaneArea = inPaneArea;
                PaneBorder = paneBorder;
            }
Пример #2
0
 /// <summary>
 /// Compares the current object with another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has the following meanings:
 /// Value
 /// Meaning
 /// Less than zero
 /// This object is less than the <paramref name="other"/> parameter.
 /// Zero
 /// This object is equal to <paramref name="other"/>.
 /// Greater than zero
 /// This object is greater than <paramref name="other"/>.
 /// </returns>
 public int CompareTo(ImageListViewGroup other)
 {
     return(string.Compare(Name, other.Name));
 }
Пример #3
0
            /// <summary>
            /// Initializes a new instance of the HitInfo class.
            /// </summary>
            /// <param name="itemIndex">Index of the item.</param>
            /// <param name="checkBoxHit">if set to true the mouse cursor is over a checkbox.</param>
            /// <param name="group">The group header hit.</param>
            /// <param name="column">The column header hit</param>
            /// <param name="columnSeparator">The column separator.</param>
            /// <param name="subItemIndex">Index of the sub item.</param>
            /// <param name="paneBorder">if set to true the mouse cursor is over the left-pane border.</param>
            /// <param name="inItemArea">if set to true the mouse is in the item area.</param>
            /// <param name="inHeaderArea">if set to true the mouse cursor is in the column header area.</param>
            /// <param name="inPaneArea">if set to true the mouse cursor is in the left-pane area.</param>
            private HitInfo(int itemIndex, bool checkBoxHit, ImageListViewGroup group, ImageListViewColumnHeader column,
                ImageListViewColumnHeader columnSeparator, int subItemIndex,
                bool paneBorder, bool inItemArea, bool inHeaderArea, bool inPaneArea)
            {
                ItemIndex = itemIndex;
                CheckBoxHit = checkBoxHit;
                Group = group;
                Column = column;
                ColumnSeparator = columnSeparator;
                SubItemIndex = subItemIndex;

                InItemArea = inItemArea;
                InHeaderArea = inHeaderArea;

                InPaneArea = inPaneArea;
                PaneBorder = paneBorder;
            }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the HitInfo class.
 /// Used when the control registered a column hit.
 /// </summary>
 /// <param name="group">The group header hit.</param>
 internal HitInfo(ImageListViewGroup group)
     : this(-1, false, group, null, null, -1, false, false, true, false)
 {
     ;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the HitInfo class.
 /// Used when the control registered a column hit.
 /// </summary>
 /// <param name="group">The group header hit.</param>
 internal HitInfo(ImageListViewGroup group)
     : this(-1, false, group, null, null, -1, false, false, true, false)
 {
     ;
 }