Table of Contents

Class MultiPropertyTracker

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.WinForms.dll

Tracks values in System.Windows.Forms.PropertyGrids in order to be able to generate MultiPropertyChangedCommands after a property was changed.

public class MultiPropertyTracker
Inheritance
object
MultiPropertyTracker
Extension Methods

Constructors

MultiPropertyTracker(PropertyGrid)

Creates a new multi-property tracker.

public MultiPropertyTracker(PropertyGrid propertyGrid)

Parameters

propertyGrid PropertyGrid

The property grid being tracked.

Methods

GetCommand(GridItem)

Creates an undo command representing a property change the System.Windows.Forms.PropertyGrid has just performed.

public IUndoCommand GetCommand(GridItem changedItem)

Parameters

changedItem GridItem

The property grid item that was changed.

Returns

IUndoCommand

Exceptions

InvalidOperationException

No change was recorded yet.