EControl Syntax Editor SDK
TCustomSyntaxMemo.CanClearSelection Method

Returns True if selection exists and selected text can be deleted.

function CanClearSelection: Boolean;

If ReadOnly is True or selection is empty or any part of selected text has read-only style CanClearSelection returns False.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!