RemoveSelection() public method

public RemoveSelection ( int i ) : bool
i int
return bool
Exemplo n.º 1
0
        public bool RemoveSelection(int i)
        {
            if (!selectionHelper.IsChildSelected(i))
            {
                return(true);
            }

            bool success = selectionHelper.RemoveSelection(i);

            //will likely never happen because UIA throws IOE...
            if (success)
            {
                string propagateName = null;
                if (!selProvider.CanSelectMultiple)
                {
                    propagateName = String.Empty;
                }
                RaiseSelectionChanged(propagateName);
            }

            return(success);
        }
Exemplo n.º 2
0
 public virtual bool RemoveSelection(int i)
 {
     return(selectionHelper.RemoveSelection(i));
 }
Exemplo n.º 3
0
 public bool RemoveSelection(int i)
 {
     return(selectionHelper.RemoveSelection(i));
     //in the past, we did this because ComboBox doesn't support this: return false;
 }