|
Document.Selection object
Prototype for Document.Selection objects. SyntaxYou cannot create a Document.Selection object directly. You create derived objects such as TextDocument.Selection, FolderDocument.Selection... Parametersnone. Property Ofnone. Implemented InECMerge 2.1 DescriptionDocument.Selection objects define a subset of a Document which is appropriate for particular actions. Selections can be defined arbitrarily, several can co-exist at a time, though only one can be active at a time in a View object. Propertiesnone. MethodsExamplesExample 1.Tells whether current selection is empty or not: alert ("Current selection is " + (current_frame.coordinator.current_view.clone_selection().is_empty() ? "" : "not") + " empty"); See Also
Method emptySyntaxfunction empty ( ) Parametersnone. Method OfDocument.Selection Implemented InECMerge 2.1 DescriptionEmpties the selection, deselecting any previously selected item inside it. Method is_emptySyntaxfunction is_empty ( ) Parametersnone. Method Ofnone. Implemented InECMerge 2.1 DescriptionReturns true if the selection is currently empty, i.e., if it contains no element.
|
|