Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Selection Object > Properties

EmEditor Macro Reference: Count Property (Selection Object)

Scroll Prev Top Next More
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.


NumOfSelections = document.selection.Count;


NumOfSelections = document.selection.Count


Supported in EmEditor Professional Version 13 or later.

Copyright © 2003-2021 by Emurasoft, Inc.