I have scrolling field it's contain some text and equation the equations are placed in between \begin{equation} and end{equation} also some equation are placed in between $$. Now I want hide all equations in the scrolling field also it's must be restored when i click restore button. Now I just replace the equations.
You can use
the hidden
property, but it is a property that only applies to lines in fields. You would have to work out some way of putting the equations on a line by themselves, then setting the hidden to true. You'd have to keep track of which lines are hidden in order to be able to restore them. Something like this should hide the first occurrence of an equation delimited by $$. Of course you'd have to iterate through the entire text to find them all, and you'd have to also find the \begin and \end delimiters.To restore the equations you would iterate through the list in tFoundList and replace the return characters with the original delimiters.