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

Comments

If you would like to comment on this blog entry, please post a comment.

External verification page for ISO 9000:2000 certificate
ISO 9001:2000
certified