The IFormatted
public interface IFormattedText
Public 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. |
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. |
Comments | Gets a collection of all comments. |
Document |
Gets a collection of all links which point to targets in the same document. |
Document |
Gets a collection of all targets. |
Drawings | Gets a collection of all drawings. |
Editable |
Gets a collection of all editable regions. |
Form |
Gets a collection of all form fields. |
Frames | Gets a collection of all images, textframes, charts, barcodes and drawings. |
Hypertext |
Gets a collection of all hypertext links. |
Images | Gets a collection of all images. |
Lines | Gets a collection of all lines the text consists of. |
Misspelled |
Gets a collection of all misspelled words. |
Paragraphs | Gets a collection of all paragraphs the text consists of. |
Selection | Gets or sets the current selection. |
Sub |
Gets a collection of all subtextparts. |
Tables | Gets a collection of all tables. |
Tables |
Gets a collection of all tables of contents. |
Text |
Gets a collection of all characters the text consists of. |
Text |
Gets a collection of all standard text fields. |
Tracked |
Gets a collection of all tracked changes. |