本文整理汇总了C#中TextEditor.Cut方法的典型用法代码示例。如果您正苦于以下问题:C# TextEditor.Cut方法的具体用法?C# TextEditor.Cut怎么用?C# TextEditor.Cut使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextEditor
的用法示例。
在下文中一共展示了TextEditor.Cut方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PerformOperation
//.........这里部分代码省略.........
{
te.SelectTextEnd();
break;
}
case UIUnityEvents.TextEditOp.ExpandSelectGraphicalLineStart:
{
te.ExpandSelectGraphicalLineStart();
break;
}
case UIUnityEvents.TextEditOp.ExpandSelectGraphicalLineEnd:
{
te.ExpandSelectGraphicalLineEnd();
break;
}
case UIUnityEvents.TextEditOp.SelectGraphicalLineStart:
{
te.SelectGraphicalLineStart();
break;
}
case UIUnityEvents.TextEditOp.SelectGraphicalLineEnd:
{
te.SelectGraphicalLineEnd();
break;
}
case UIUnityEvents.TextEditOp.SelectWordLeft:
{
te.SelectWordLeft();
break;
}
case UIUnityEvents.TextEditOp.SelectWordRight:
{
te.SelectWordRight();
break;
}
case UIUnityEvents.TextEditOp.SelectToEndOfPreviousWord:
{
te.SelectToEndOfPreviousWord();
break;
}
case UIUnityEvents.TextEditOp.SelectToStartOfNextWord:
{
te.SelectToStartOfNextWord();
break;
}
case UIUnityEvents.TextEditOp.SelectParagraphBackward:
{
te.SelectParagraphBackward();
break;
}
case UIUnityEvents.TextEditOp.SelectParagraphForward:
{
te.SelectParagraphForward();
break;
}
case UIUnityEvents.TextEditOp.Delete:
{
return te.Delete();
}
case UIUnityEvents.TextEditOp.Backspace:
{
return te.Backspace();
}
case UIUnityEvents.TextEditOp.DeleteWordBack:
{
return te.DeleteWordBack();
}
case UIUnityEvents.TextEditOp.DeleteWordForward:
{
return te.DeleteWordForward();
}
case UIUnityEvents.TextEditOp.Cut:
{
return te.Cut();
}
case UIUnityEvents.TextEditOp.Copy:
{
te.Copy();
break;
}
case UIUnityEvents.TextEditOp.Paste:
{
return te.Paste();
}
case UIUnityEvents.TextEditOp.SelectAll:
{
te.SelectAll();
break;
}
case UIUnityEvents.TextEditOp.SelectNone:
{
te.SelectNone();
break;
}
default:
{
goto case UIUnityEvents.TextEditOp.SelectPageDown;
}
}
return false;
}