TextServicesCompartmentEventSink.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / TextServicesCompartmentEventSink.cs / 1 / TextServicesCompartmentEventSink.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: Manages Text Services Compartment. 
// 
// History:
//  07/30/2003 : [....] - Ported from .net tree. 
//
//---------------------------------------------------------------------------

using System; 
using System.Runtime.InteropServices;
using System.Windows.Threading; 
 
using System.Diagnostics;
using System.Collections; 
using System.Security.Permissions;
using MS.Utility;
using MS.Win32;
 
namespace System.Windows.Input
{ 
    //----------------------------------------------------- 
    //
    //  TextServicesCompartmentManager class 
    //
    //-----------------------------------------------------

    ///  
    /// This is a class to have a real implement of ITfCompartmentEventSink.
    ///  
    internal class TextServicesCompartmentEventSink : UnsafeNativeMethods.ITfCompartmentEventSink 
    {
        //------------------------------------------------------ 
        //
        //  Constructors
        //
        //----------------------------------------------------- 

        internal TextServicesCompartmentEventSink(InputMethod inputmethod) 
        { 
            _inputmethod = inputmethod;
        } 

        //------------------------------------------------------
        //
        //  Public Method 
        //
        //------------------------------------------------------ 
 
        /// 
        ///  This is OnChange method of ITfCompartmentEventSink internface. 
        /// 
        public void OnChange(ref Guid rguid)
        {
            _inputmethod.OnChange(ref rguid); 
        }
 
        //----------------------------------------------------- 
        //
        //  Private Fields 
        //
        //------------------------------------------------------

        #region Private Fields 

        private InputMethod _inputmethod; 
 
        #endregion Private Fields
    } 
}


// 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