TextGRAB SDK Documentation | ITextGRABSDK::EnableSelection

Enables built-in mouse selection tool.

HRESULT   EnableSelection(

    VARIANT_BOOL enable

[Visual Basic]

   ByVal enable As Boolean

void   ITextGRABSDK.EnableSelection(

    bool enable



[in] Specifies if selection tool should be enabled or disabled. Pass TRUE to enable, FALSE to disable selection tool.


By default built-in mouse selection tool can be activated using Ctrl+Shift keys. This keys combination can be changed with SetupHotkey method.

Return Value(s)


Return Value(s) Definitions
S_OK (0x00000000) Operation was completed successfully.
E_FAIL (0x80004005) Error.
S_FALSE (0x00000001) Selection tool is already activated/deactivated.

See Also

ITextGRABSDK interface