/// <summary>
            /// Creates a new object that is a copy of the current instance.
            /// </summary>
            /// <returns>
            /// A new object that is a copy of this instance.
            /// </returns>
            public object Clone()
            {
                ImageListViewColumnHeader column = new ImageListViewColumnHeader();

                column.mDisplayIndex = mDisplayIndex;
                column.mText         = mText;
                column.mType         = mType;
                column.mVisible      = mVisible;
                column.mWidth        = mWidth;

                return(column);
            }
예제 #2
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="columnIndex">Type of the column.</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, ImageListViewColumnHeader columnIndex,
                ImageListViewColumnHeader columnSeparator, int subItemIndex,
                bool paneBorder, bool inItemArea, bool inHeaderArea, bool inPaneArea)
            {
                ItemIndex = itemIndex;
                CheckBoxHit = checkBoxHit;
                Column = columnIndex;
                ColumnSeparator = columnSeparator;
                SubItemIndex = subItemIndex;

                InItemArea = inItemArea;
                InHeaderArea = inHeaderArea;

                InPaneArea = inPaneArea;
                PaneBorder = paneBorder;
            }
예제 #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;
            }
            /// <summary>
            /// Creates a new object that is a copy of the current instance.
            /// </summary>
            /// <returns>
            /// A new object that is a copy of this instance.
            /// </returns>
            public object Clone()
            {
                ImageListViewColumnHeader column = new ImageListViewColumnHeader();

                column.mDisplayIndex = mDisplayIndex;
                column.mText = mText;
                column.mType = mType;
                column.mVisible = mVisible;
                column.mWidth = mWidth;

                return column;
            }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the HitInfo class.
 /// Used when the control registered a column hit.
 /// </summary>
 /// <param name="column">Type column hit.</param>
 /// <param name="columnSeparator">The column separator.</param>
 internal HitInfo(ImageListViewColumnHeader column, ImageListViewColumnHeader columnSeparator)
     : this(-1, false, null, column, columnSeparator, -1, false, false, true, false)
 {
     ;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the HitInfo class.
 /// Used when the control registered a column hit.
 /// </summary>
 /// <param name="column">Type column hit.</param>
 /// <param name="columnSeparator">The column separator.</param>
 internal HitInfo(ImageListViewColumnHeader column, ImageListViewColumnHeader columnSeparator)
     : this(-1, false, null, column, columnSeparator, -1, false, false, true, false)
 {
     ;
 }