AddSelection() public method

public AddSelection ( int startOffset, int endOffset ) : bool
startOffset int
endOffset int
return bool
Esempio n. 1
0
        public void AddToSelection()
        {
            if (!accessible.StateSet.Contains(StateType.Enabled))
            {
                throw new ElementNotEnabledException();
            }

            // TODO: Throw exception on failure
            text.AddSelection(startOffset, endOffset);
        }