TX Text Control .NET for Windows Forms 13.0 introduces a new method to activate specific text frames. This method is part of the TextFrame class. To deactivate all text frames, the TextFrameCollection offers the DeactivateItem method. This is of interest when iterating through all TextFields in the main text and all frames.

Depending upon whether you are inside a text frame or not, you will get two different results when you loop through all TextFields of the TextControl class.

foreach(TXTextControl.TextField thisField in textControl1.TextFields)
{ ... }

If the current input position is inside a text frame, the fields of this text frame will be returned.

You have to deactivate all text frames to be able to iterate through all text fields in the main text.