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.

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.