NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

LabelEditEventArgs.CancelEdit

Gets or sets a value indicating whether changes made to the label of the ListItem should be canceled.

[Visual Basic]
Public Property CancelEdit As Boolean
[C#]
public bool CancelEdit {get; set;}
[C++]
public: __property bool get_CancelEdit();
public: __property void set_CancelEdit(bool);
[JScript]
public function get CancelEdit() : Boolean;
public function set CancelEdit(Boolean);

Property Value

true if the edit operation of the label for the ListItem should be canceled; otherwise false.

Remarks

You can use this property to cancel changes made to the label of a ListItem, and revert it to its original text. Use this property to prevent an item's caption from being changed to a value that does not meet your application's requirements.

See Also

LabelEditEventArgs Class | LabelEditEventArgs Members | System.WinForms Namespace