Interface IObjectEditor<T>
Provides the properties and methods allowing transactional edit operations.
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public interface IObjectEditor<T>
Type Parameters
T
The type of the edited objects. |
Properties
EditedItem
The currently edited object.
Declaration
T EditedItem { get; }
Property Value
T
|
Methods
BeginEdit(T)
Begins a edit operation.
Declaration
bool BeginEdit(T item)
Parameters
T
item
The object to edit. |
Returns
System.Boolean
True when the operation succeeded, otherwise false. |
Cancel()
Cancels the current edit operation.
Declaration
bool Cancel()
Returns
System.Boolean
True when the operation succeeded, otherwise false. |
Commit()
Commits the current edit operation.
Declaration
bool Commit()
Returns
System.Boolean
True when the operation succeeded, otherwise false. |
GetItemToEdit(T)
Gets the item to edit.
Declaration
IOccurrence GetItemToEdit(T item)
Parameters
T
item
|
Returns
IOccurrence
|
Remove(T)
Removes the specified object.
Declaration
bool Remove(T item)
Parameters
T
item
The object to remove. |
Returns
System.Boolean
True when the operation succeeded, otherwise false. |