Interface
IObjectEditor<T>

Provides the properties and methods allowing transactional edit operations.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Type Parameters:

T

The type of the edited objects.

Syntax:

cs-api-definition
public interface IObjectEditor<T>

Properties

EditedItem

The currently edited object.

Declaration

cs-api-definition
T EditedItem { get; }

Property Value

T

Methods

BeginEdit(T)

Begins a edit operation.

Declaration

cs-api-definition
bool BeginEdit(T item)

Parameters

item

T

The object to edit.

Returns

bool

True when the operation succeeded, otherwise false.

Cancel()

Cancels the current edit operation.

Declaration

cs-api-definition
bool Cancel()

Returns

bool

True when the operation succeeded, otherwise false.

Commit()

Commits the current edit operation.

Declaration

cs-api-definition
bool Commit()

Returns

bool

True when the operation succeeded, otherwise false.

GetItemToEdit(T)

Gets the item to edit.

Declaration

cs-api-definition
IOccurrence GetItemToEdit(T item)

Parameters

item

T

Returns

IOccurrence

Remove(T)

Removes the specified object.

Declaration

cs-api-definition
bool Remove(T item)

Parameters

item

T

The object to remove.

Returns

bool

True when the operation succeeded, otherwise false.