using System;
namespace DevComponents.Tree
{
///
/// Represents event arguments for cell editing events.
///
public class CellEditEventArgs
{
///
/// Indicates the action that caused the event.
///
public eTreeAction Action=eTreeAction.Code;
///
/// Indicates the cell that is affected.
///
public DevComponents.Tree.Cell Cell=null;
///
/// Indicates new text that will be assigned to the cell if one is appropriate for given event.
///
public string NewText="";
///
/// Indicates whether the current action is cancelled. For BeforeCellEdit event setting this
/// property to true will cancel the editing. For AfterCellEdit event setting this property to
/// true will cancel any changes made to the text and edits will not be accepted. For CellEditEnding
/// event setting this property to true will keep the cell in edit mode.
///
public bool Cancel=false;
///
/// Initializes new instance of CellEditEventArgs class.
///
/// Reference to Cell this event is raised for.
/// Indicates the action that caused the event.
/// Indicates new text of the cell if it applies to given event.
public CellEditEventArgs(Cell cell, eTreeAction action, string newText)
{
this.Action=action;
this.Cell=cell;
this.NewText=newText;
}
}
}