//------------------------------------------------------ // // Constructors // //------------------------------------------------------ internal InputMethodEventTypeInfo( InputMethodStateType type, Guid guid, CompartmentScope scope) { _inputmethodstatetype = type; _guid = guid; _scope = scope; }
internal TextServicesCompartment GetCompartment(InputMethodStateType statetype) { for (int i = 0; i < InputMethodEventTypeInfo.InfoList.Length; i++) { InputMethodEventTypeInfo iminfo = InputMethodEventTypeInfo.InfoList[i]; if (iminfo.Type == statetype) { if (iminfo.Scope == CompartmentScope.Thread) return GetThreadCompartment(iminfo.Guid); else if (iminfo.Scope == CompartmentScope.Global) return GetGlobalCompartment(iminfo.Guid); } } return null; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ internal InputMethodStateChangedEventArgs(InputMethodStateType statetype) { _statetype = statetype; }