RichTextBox.RedoActionName プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RichTextBox.RedoActionName プロパティの意味・解説 

RichTextBox.RedoActionName プロパティ

Redo メソッド呼び出され場合に、コントロールに再適用できるアクションの名前を取得します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As RichTextBox
Dim value As String

value = instance.RedoActionName
public string RedoActionName { get;
 }
public:
property String^ RedoActionName {
    String^ get ();
}
/** @property */
public String get_RedoActionName ()
public function get RedoActionName
 () : String

プロパティ
Redo メソッド呼び出され場合実行されるアクションの名前を表す文字列。

解説解説
使用例使用例

CanRedo プロパティRedoActionName プロパティ、および Redo メソッド使用してテキスト削除以外の操作対すやり直し操作制限する方法次のコード例示します。この例では、フォームRichTextBox コントロール含まれていて、この例のコード呼び出される前に RichTextBox 内で何らかの操作実行され、その操作元に戻されている必要があります

Private Sub RedoAllButDeletes()

    ' Determines if a Redo operation can be performed.
    If richTextBox1.CanRedo = True Then
        ' Determines if the redo operation deletes text.
        If richTextBox1.RedoActionName <> "Delete"
 Then
            ' Perform the redo.
            richTextBox1.Redo()
        End If
    End If
End Sub
private void RedoAllButDeletes()
{
    // Determines if a Redo operation can be performed.
    if(richTextBox1.CanRedo == true)
    {
        // Determines if the redo operation deletes text.
        if (richTextBox1.RedoActionName != "Delete")
            // Perform the redo.
            richTextBox1.Redo();
    }
}
private:
   void RedoAllButDeletes()
   {
      // Determines if a Redo operation can be performed.
      if ( richTextBox1->CanRedo == true
 )
      {
         // Determines if the redo operation deletes text.
         if (  !richTextBox1->RedoActionName->Equals( "Delete"
 ) )
         // Perform the redo.
         richTextBox1->Redo();
      }
   }
private void RedoAllButDeletes()
{
    // Determines if a Redo operation can be performed.
    if (richTextBox1.get_CanRedo() == true)
 {
        // Determines if the redo operation deletes text.
        if (!(richTextBox1.get_RedoActionName().Equals("Delete")))
 {
            // Perform the redo.
            richTextBox1.Redo();
        }
    }
} //RedoAllButDeletes
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

RichTextBox.RedoActionName プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RichTextBox.RedoActionName プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS