UnityEngine.TextEditor.PerformOperation C# (CSharp) Method

PerformOperation() private method

private PerformOperation ( TextEditOp operation ) : bool
operation TextEditOp
return bool
        private bool PerformOperation(TextEditOp operation)
        {
            this.m_RevealCursor = true;
            switch (operation)
            {
                case TextEditOp.MoveLeft:
                    this.MoveLeft();
                    break;

                case TextEditOp.MoveRight:
                    this.MoveRight();
                    break;

                case TextEditOp.MoveUp:
                    this.MoveUp();
                    break;

                case TextEditOp.MoveDown:
                    this.MoveDown();
                    break;

                case TextEditOp.MoveLineStart:
                    this.MoveLineStart();
                    break;

                case TextEditOp.MoveLineEnd:
                    this.MoveLineEnd();
                    break;

                case TextEditOp.MoveTextStart:
                    this.MoveTextStart();
                    break;

                case TextEditOp.MoveTextEnd:
                    this.MoveTextEnd();
                    break;

                case TextEditOp.MoveGraphicalLineStart:
                    this.MoveGraphicalLineStart();
                    break;

                case TextEditOp.MoveGraphicalLineEnd:
                    this.MoveGraphicalLineEnd();
                    break;

                case TextEditOp.MoveWordLeft:
                    this.MoveWordLeft();
                    break;

                case TextEditOp.MoveWordRight:
                    this.MoveWordRight();
                    break;

                case TextEditOp.MoveParagraphForward:
                    this.MoveParagraphForward();
                    break;

                case TextEditOp.MoveParagraphBackward:
                    this.MoveParagraphBackward();
                    break;

                case TextEditOp.MoveToStartOfNextWord:
                    this.MoveToStartOfNextWord();
                    break;

                case TextEditOp.MoveToEndOfPreviousWord:
                    this.MoveToEndOfPreviousWord();
                    break;

                case TextEditOp.SelectLeft:
                    this.SelectLeft();
                    break;

                case TextEditOp.SelectRight:
                    this.SelectRight();
                    break;

                case TextEditOp.SelectUp:
                    this.SelectUp();
                    break;

                case TextEditOp.SelectDown:
                    this.SelectDown();
                    break;

                case TextEditOp.SelectTextStart:
                    this.SelectTextStart();
                    break;

                case TextEditOp.SelectTextEnd:
                    this.SelectTextEnd();
                    break;

                case TextEditOp.ExpandSelectGraphicalLineStart:
                    this.ExpandSelectGraphicalLineStart();
                    break;

                case TextEditOp.ExpandSelectGraphicalLineEnd:
                    this.ExpandSelectGraphicalLineEnd();
                    break;

                case TextEditOp.SelectGraphicalLineStart:
                    this.SelectGraphicalLineStart();
                    break;

                case TextEditOp.SelectGraphicalLineEnd:
                    this.SelectGraphicalLineEnd();
                    break;

                case TextEditOp.SelectWordLeft:
                    this.SelectWordLeft();
                    break;

                case TextEditOp.SelectWordRight:
                    this.SelectWordRight();
                    break;

                case TextEditOp.SelectToEndOfPreviousWord:
                    this.SelectToEndOfPreviousWord();
                    break;

                case TextEditOp.SelectToStartOfNextWord:
                    this.SelectToStartOfNextWord();
                    break;

                case TextEditOp.SelectParagraphBackward:
                    this.SelectParagraphBackward();
                    break;

                case TextEditOp.SelectParagraphForward:
                    this.SelectParagraphForward();
                    break;

                case TextEditOp.Delete:
                    return this.Delete();

                case TextEditOp.Backspace:
                    return this.Backspace();

                case TextEditOp.DeleteWordBack:
                    return this.DeleteWordBack();

                case TextEditOp.DeleteWordForward:
                    return this.DeleteWordForward();

                case TextEditOp.DeleteLineBack:
                    return this.DeleteLineBack();

                case TextEditOp.Cut:
                    return this.Cut();

                case TextEditOp.Copy:
                    this.Copy();
                    break;

                case TextEditOp.Paste:
                    return this.Paste();

                case TextEditOp.SelectAll:
                    this.SelectAll();
                    break;

                case TextEditOp.SelectNone:
                    this.SelectNone();
                    break;

                default:
                    Debug.Log("Unimplemented: " + operation);
                    break;
            }
            return false;
        }