Altova XMLSpy 2025 Enterprise Edition

Superseded by AuthenticRange.CanPerformAction

 

Use spyAuthenticApply for the eAction parameter. The CanPerformAction method allows to operate on any range of the document, not only the current UI selection.

 

// ----- javascript sample -----

// instead of:

// Application.ActiveDocument.DocEditView.IsTextStateEnabled ("bold");

// use now:

if (Application.ActiveDocument.AuthenticView.Selection.CanPerformAction (spyAuthenticApply, "bold"))

   ... // e.g. enable 'bold' button

 

Declaration: IsTextStateEnabled (i_strElementName as String) as Boolean

 

Description

Checks to see if it is possible to apply a text state. Common examples for the parameter elementName would be strong and italic.

 

 

 

© 2018-2024 Altova GmbH