Altova XMLSpy 2024 Enterprise Edition

Superseded by AuthenticRange.IsTextStateApplied


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

// instead of:

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

// use now:

if (Application.ActiveDocument.AuthenticView.Selection.IsTextStateApplied ("bold"))

   MsgBox ("bold on");


   MsgBox ("bold off");


Declaration: IsTextStateApplied (elementName as String) as Boolean



Checks to see if the it the text state has already been applied. Common examples for the parameter elementName would be strong and italic.




© 2018-2024 Altova GmbH