diff options
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs index 99dc246a2eb..6ece20d2b3d 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs @@ -57,13 +57,15 @@ namespace System.Windows.Forms public class ColumnHeader : Component, ICloneable { #region Instance Variables - internal ListView owner; private StringFormat format; private string text = "ColumnHeader"; private HorizontalAlignment text_alignment = HorizontalAlignment.Left; private int width = ThemeEngine.Current.ListViewDefaultColumnWidth; - // column area + + // internal variables internal Rectangle column_rect = Rectangle.Empty; + internal bool pressed = false; + internal ListView owner; #endregion // Instance Variables #region Internal Constructor @@ -86,6 +88,10 @@ namespace System.Windows.Forms // Since this class inherits from MarshalByRef, // we can't do ColumnHeader.column_rect.XXX. Hence, // we have some of the following properties to work around CS0197. + internal bool Pressed { + get { return this.pressed; } + } + internal int X { get { return this.column_rect.X; } set { this.column_rect.X = value; } |