The IFormatted
public interface IFormattedTextPublic Interface IFormattedText Introduced: 16.0.
The following examples shows how to loop through all text parts to get the first line of each part.
foreach (object obj in textControl1.TextParts)
{
Console.WriteLine("First Line: " + ((IFormattedText)
obj).Lines[1].Text);
}For Each obj As Object In textControl1.TextParts
Console.WriteLine("First Line: " & (CType(obj, IFormattedText)).Lines(1).Text)
Next| Method | Description |
|---|---|
| Find | Finds a text string in the text part. |
| Get |
Returns a collection containing text fields of the specified types. |
| Property | Description |
|---|---|
| Application |
Gets a collection of all Microsoft Word or Heiler High |
| Barcodes | Gets a collection of all barcodes in the text part. |
| Comments | Gets a collection of all comments in the text part. |
| Document |
Gets a collection of all links in the text part which point to targets in the same document. |
| Document |
Gets a collection of all targets in the text part. |
| Drawings | Gets a collection of all drawings in the text part. |
| Editable |
Gets a collection of all editable regions in the text part. |
| Form |
Gets a collection of all form fields in the text part. |
| Frames | Gets a collection of all images, textframes, charts, barcodes and drawings in the text part. |
| Hypertext |
Gets a collection of all hypertext links in the text part. |
| Images | Gets a collection of all images in the text part. |
| Lines | Gets a collection of all lines the text in the text part consists of. |
| Misspelled |
Gets a collection of all misspelled words in the text part. |
| Paragraphs | Gets a collection of all paragraphs the text in the text part consists of. |
| Selection | Gets or sets the current selection in the text part. |
| Sub |
Gets a collection of all subtextparts in the text part. |
| Tables | Gets a collection of all tables in the text part. |
| Tables |
Gets a collection of all tables of contents. |
| Text |
Gets a collection of all characters the text in the text part consists of. |
| Text |
Gets a collection of all standard text fields in the text part. |
| Tracked |
Gets a collection of all tracked changes made in the text part. |