DeadCharTextComposition.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / DeadCharTextComposition.cs / 1 / DeadCharTextComposition.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: the DeadCharTextComposition class 
// 
// History:
//  06/14/2004 : yutakas created 
//
//---------------------------------------------------------------------------

using System; 
using System.Diagnostics;
using System.Text; 
using System.Windows.Threading; 
using System.Windows;
using System.Security; 
using MS.Win32;
using Microsoft.Win32; // for RegistryKey class

namespace System.Windows.Input 
{
 
    ///  
    ///     the DeadCharTextComposition class is the composition object for Dead key scequence.
    ///  
    internal sealed class DeadCharTextComposition : TextComposition
    {
        //-----------------------------------------------------
        // 
        //  Constructors
        // 
        //----------------------------------------------------- 

        #region Constructors 

        ///
        ///     Critical - calls TextComposition:ctor which is critical ( as it stores InputManager).
        /// 
        [SecurityCritical]
        internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice) 
        { 
        }
 
        #endregion Constructors


        //------------------------------------------------------ 
        //
        //  internal Properties 
        // 
        //-----------------------------------------------------
 
        internal bool Composed
        {
            get {return _composed;}
            set {_composed = value;} 
        }
 
        //------------------------------------------------------ 
        //
        //  Private Fields 
        //
        //------------------------------------------------------

        // If this is true, the text has been composed with actual char. 
        private bool _composed;
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: the DeadCharTextComposition class 
// 
// History:
//  06/14/2004 : yutakas created 
//
//---------------------------------------------------------------------------

using System; 
using System.Diagnostics;
using System.Text; 
using System.Windows.Threading; 
using System.Windows;
using System.Security; 
using MS.Win32;
using Microsoft.Win32; // for RegistryKey class

namespace System.Windows.Input 
{
 
    ///  
    ///     the DeadCharTextComposition class is the composition object for Dead key scequence.
    ///  
    internal sealed class DeadCharTextComposition : TextComposition
    {
        //-----------------------------------------------------
        // 
        //  Constructors
        // 
        //----------------------------------------------------- 

        #region Constructors 

        ///
        ///     Critical - calls TextComposition:ctor which is critical ( as it stores InputManager).
        /// 
        [SecurityCritical]
        internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice) 
        { 
        }
 
        #endregion Constructors


        //------------------------------------------------------ 
        //
        //  internal Properties 
        // 
        //-----------------------------------------------------
 
        internal bool Composed
        {
            get {return _composed;}
            set {_composed = value;} 
        }
 
        //------------------------------------------------------ 
        //
        //  Private Fields 
        //
        //------------------------------------------------------

        // If this is true, the text has been composed with actual char. 
        private bool _composed;
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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