MobileForms Toolkit Documentation

ShortcutsCollection.OnSet Method 

Performs additional custom processes before setting a value in the collection.

protected override void OnSet(
int index,
object oldValue,
object newValue
);

Parameters

index
The zero-based index at which oldValue can be found.
oldValue
The value to replace with newValue.
newValue
The new value of the Item at index.

Remarks

OnSet is invoked before the standard Set behavior, whereas OnSetComplete is invoked after the standard Set behavior.

For example, implementers can restrict which values can be overwritten by performing a check inside OnSet.

See Also

ShortcutsCollection Class | Resco.Controls.OutlookControls Namespace