TCustomRichViewEdit.CanChange

<< Click to display table of contents >>

TCustomRichViewEdit.CanChange

Returns: "can the document in this editor be changed now?"

function CanChange: Boolean;

This function checks ReadOnly property.

Usually this function is called before performing operations on tables to prevent modifying editor in read-only state.

Additionally, if live spelling checking is active, this method pauses a live spelling checking thread (until the call of Change), to prevent errors when accessing data that are being modified.

For TDBRichViewEdit, this function also turns the editor's dataset in editing mode (required before operations on tables).

This method must be called only when the document is formatted.