/// <summary> 获取根部的输入上下文 </summary>
        /// <returns>根部的输入上下文</returns>
        public IMRATextInputContext GetRoot()
        {
            IMRATextInputContext root = GetParent();

            if (root == null)
            {
                return(this);
            }
            IMRATextInputContext _root = root.GetParent();

            while (_root != null)
            {
                root = _root; _root = root.GetParent();
            }
            return(root);
        }
Exemple #2
0
 public MRAZoneContext(string _name, IMRATextInputContext _inputcontext, MRAZoneAction _action)
 {
     this.name         = _name;
     this.action       = _action;
     this.inputcontext = _inputcontext;
 }
Exemple #3
0
 public MRATextInputItem(IMRATextInputContext _parent, ITextItem _item)
 {
     this.parent = _parent;
     this.item   = _item;
 }