public void AddToSelection () { if (!accessible.StateSet.Contains (StateType.Enabled)) throw new ElementNotEnabledException (); // TODO: Throw exception on failure text.AddSelection (startOffset, endOffset); }