UICuesEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / UICuesEvent.cs / 1305376 / UICuesEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 */ 
namespace System.Windows.Forms {
    ///  
    /// 
    ///    
    ///       Specifies UI state.
    ///     
    /// 
    [Flags] 
    public enum UICues { 

        ///  
        /// 
        ///     Focus rectangles are shown after the change.
        /// 
        ShowFocus = 0x01, 

        ///  
        ///  
        ///     Keyboard cues are underlined after the change.
        ///  
        ShowKeyboard = 0x02,

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        Shown = ShowFocus | ShowKeyboard, 

        ///  
        /// 
        ///     The state of the focus cues has changed.
        /// 
        ChangeFocus = 0x04, 

        ///  
        ///  
        ///     The state of the keyboard cues has changed.
        ///  
        ChangeKeyboard = 0x08,

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        Changed = ChangeFocus | ChangeKeyboard, 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        None = 0x00, 
    }
 
    ///  
    /// 
    ///     
    ///       Provides data for the  event.
    ///    
    /// 
    public class UICuesEventArgs : EventArgs { 

        private readonly UICues uicues; 
 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
        public UICuesEventArgs(UICues uicues) { 
            this.uicues = uicues;
        } 
 
        /// 
        ///  
        ///     Focus rectangles are shown after the change.
        /// 
        public bool ShowFocus {
            get { 
                return (uicues & UICues.ShowFocus) != 0;
            } 
        } 

        ///  
        /// 
        ///     Keyboard cues are underlined after the change.
        /// 
        public bool ShowKeyboard { 
            get {
                return (uicues & UICues.ShowKeyboard) != 0; 
            } 
        }
 
        /// 
        /// 
        ///     The state of the focus cues has changed.
        ///  
        public bool ChangeFocus {
            get { 
                return (uicues & UICues.ChangeFocus) != 0; 
            }
        } 

        /// 
        /// 
        ///     The state of the keyboard cues has changed. 
        /// 
        public bool ChangeKeyboard { 
            get { 
                return (uicues & UICues.ChangeKeyboard) != 0;
            } 
        }

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public UICues Changed { 
            get {
                return (uicues & UICues.Changed); 
            }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK