バージョン

Cut メソッド (FormattedTextEditInfo)

選択した内容で Cut 操作を実行します。選択した内容をクリップボードにコピーして削除することに関する切り取り操作。
シンタックス
'宣言
 
Public Function Cut() As Boolean
public bool Cut()

戻り値の型

Cut 操作が成功したかどうかを示す値を返します。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Misc
Imports Infragistics.Win.FormattedLinkLabel

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim editInfo As FormattedTextEditInfo = Me.UltraFormattedTextEditor1.EditInfo

        ' Set some test value.
        Me.UltraFormattedTextEditor1.Value = "TEST"

        ' Select all of the contents.
        editInfo.SelectAll()

        ' Copy the contents.
        editInfo.Copy()

        ' Unselect and set the caret in the beginning.
        editInfo.SelectionStart = 0
        editInfo.SelectionLength = 0

        ' Paste the copied value. This will essentially duplicate the initial value.
        editInfo.Paste()

        ' Select first character.
        editInfo.SelectionStart = 0
        editInfo.SelectionLength = 1

        ' Delete the selected content.
        editInfo.Delete()
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Misc;
using Infragistics.Win.FormattedLinkLabel;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			FormattedTextEditInfo editInfo = this.ultraFormattedTextEditor1.EditInfo;

			// Set some test value.
			this.ultraFormattedTextEditor1.Value = "TEST";

			// Select all of the contents.
			editInfo.SelectAll( );

			// Copy the contents.
			editInfo.Copy( );

			// Unselect and set the caret in the beginning.
			editInfo.SelectionStart = 0;
			editInfo.SelectionLength = 0;

			// Paste the copied value. This will essentially duplicate the initial value.
			editInfo.Paste( );

			// Select first character.
			editInfo.SelectionStart = 0;
			editInfo.SelectionLength = 1;

			// Delete the selected content.
			editInfo.Delete( );
		}
参照