UndoEngine.CreateUndoUnit(String, Boolean) メソッド

定義

新しい UndoEngine.UndoUnit を作成します。

protected:
 virtual System::ComponentModel::Design::UndoEngine::UndoUnit ^ CreateUndoUnit(System::String ^ name, bool primary);
protected virtual System.ComponentModel.Design.UndoEngine.UndoUnit CreateUndoUnit (string name, bool primary);
protected virtual System.ComponentModel.Design.UndoEngine.UndoUnit CreateUndoUnit (string? name, bool primary);
abstract member CreateUndoUnit : string * bool -> System.ComponentModel.Design.UndoEngine.UndoUnit
override this.CreateUndoUnit : string * bool -> System.ComponentModel.Design.UndoEngine.UndoUnit
Protected Overridable Function CreateUndoUnit (name As String, primary As Boolean) As UndoEngine.UndoUnit

パラメーター

name
String

作成する単位の名前。

primary
Boolean

入れ子になっている一連の単位のうち最初の単位を作成する場合は true。以降の入れ子になっている単位を作成する場合は false

戻り値

指定した名前の新しい UndoEngine.UndoUnit

注釈

メソッドの既定の実装では、 CreateUndoUnit 単に新 UndoEngine.UndoUnitしい を返します。

既定では、 UndoEngine パラメーターでは何も primary 行われませんが、COM Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit デザイン パターンを含む実装など、元に戻す実装の一部では、プライマリ ユニットとその子の違いを識別する必要がある場合があります。

適用対象