Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.
« »

Deactivate the current text frame

Blogged by Björn Meyer on December 08, 2006 and tagged with Samples, .NET.

TX Text Control .NET 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.

« Prev:Using a ComboBox to change the field's text
» Next:A self-populating bound table class

top

Top 10 Bestselling Product Award 2007Top 25 Publisher Product Award 2007Top 10 Bestselling Product Award 2007 in JapanTop 25 Bestselling Product Award 2006Top 25 Bestselling Publisher Award 2006Reader's Choice Award, dot.net magazin, 3rd place