EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

Count Property

Retrieves the number of selections in the current document. This property always returns 0 if it is not in the multiple selection mode even if a normal selection exists.

[JavaScript]

NumOfSelections = document.selection.Count;

[VBScript]

NumOfSelections = document.selection.Count

Version

Supported in EmEditor Professional Version 13 or later.

Copyright 2003-2015 by Emurasoft, Inc.