NanoByte.Common  2.9.0
NanoByte.Common.Undo.MultiPropertyTracker Class Reference

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

Public Member Functions

 MultiPropertyTracker (PropertyGrid propertyGrid)
 Creates a new multi-property tracker. More...
 
IUndoCommand GetCommand (GridItem changedItem)
 Creates an undo command representing a property change the PropertyGrid has just performed. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MultiPropertyTracker()

NanoByte.Common.Undo.MultiPropertyTracker.MultiPropertyTracker ( PropertyGrid  propertyGrid)
inline

Creates a new multi-property tracker.

Parameters
propertyGridThe property grid being tracked.

Member Function Documentation

◆ GetCommand()

IUndoCommand NanoByte.Common.Undo.MultiPropertyTracker.GetCommand ( GridItem  changedItem)

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

Parameters
changedItemThe property grid item that was changed.
Exceptions
InvalidOperationExceptionNo change was recorded yet.

The documentation for this class was generated from the following file: