Class MultiPropertyTracker
Tracks values in PropertyGrids in order to be able to generate MultiPropertyChangedCommands after a property was changed.
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.WinForms.dll
Syntax
public class MultiPropertyTracker : Object
Constructors
MultiPropertyTracker(PropertyGrid)
Creates a new multi-property tracker.
Declaration
public MultiPropertyTracker(PropertyGrid propertyGrid)
Parameters
Type | Name | Description |
---|---|---|
PropertyGrid | propertyGrid | The property grid being tracked. |
Methods
GetCommand(GridItem)
Creates an undo command representing a property change the PropertyGrid has just performed.
Declaration
public IUndoCommand GetCommand(GridItem changedItem)
Parameters
Type | Name | Description |
---|---|---|
GridItem | changedItem | The property grid item that was changed. |
Returns
Type | Description |
---|---|
IUndoCommand |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | No change was recorded yet. |