Language

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 デザイン パターンを含む実装など、一部の undo の実装では、プライマリ ユニットとその子の違いを特定する必要がある場合があります。

適用対象