# TextFrame Class

> An instance of the TextFrame class represents a text frame in a Text Control document. A text frame is a rectangle that can be filled with text by an end-user and can be edited like the main text. The TextControl class has several events that inform about different occurrences. A text frame can be added to the document through the TextFrameCollection class. The TextFrame class implements the IFormattedText interface.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `TXTextControl.FrameBase`
- **Implements:** `TXTextControl.IFormattedText`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TextFrame Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/#members)

---

## In This Section

- [TextFrame.Activate Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/activate-method/llms.txt): Activates the text frame. The text frame receives the input focus. A text frame can only be activated, if the text part that contains the text frame has the input focus.
- [TextFrame.ApplicationFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/applicationfields-property/llms.txt): Gets a collection of all Microsoft Word or Heiler HighEdit fields that have been created or imported from a Microsoft Word or RTF document. The property value is an object of the type ApplicationFieldCollection. Before loading a document the LoadSettings.ApplicationFieldFormat property must be set, otherwise this collection is empty.
- [TextFrame.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/backcolor-property/llms.txt): Gets or sets the background color of a text frame.
- [TextFrame.Barcodes Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/barcodes-property/llms.txt): Gets a collection of all barcodes contained in a text frame. The property value is an object of the type DataVisualization.BarcodeCollection. The collection can be used to get or to alter a barcode's attributes and to add barcodes to or to remove barcodes from a text frame.
- [TextFrame.BorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/bordercolor-property/llms.txt): Gets or sets the color of a text frame's border line.
- [TextFrame.BorderStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderstyle-property/llms.txt): Gets or sets the style of a text frame's border line.
- [TextFrame.BorderWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderwidth-property/llms.txt): Gets or sets the width, in twips, of a text frame's border line. To alter the distance between the border line and the text, use the InternalMargins property. If this property is set to zero, the text frame has no border line.
- [TextFrame.Charts Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/charts-property/llms.txt): Gets a collection of all charts contained in a text frame. The property value is an object of the type DataVisualization.ChartCollection. The collection can be used to get or to alter a chart's attributes and to add charts to or to remove charts from a text frame.
- [TextFrame.Comments Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/comments-property/llms.txt): Gets a collection of all comments in the text frame. The property's value is an object of the type CommentCollection.
- [TextFrame Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/constructor/llms.txt): Initializes a new instance of the TextFrame class.
- [TextFrame.DocumentLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/documentlinks-property/llms.txt): Gets a collection of all links in a text frame which point to targets in the same document. The property value is an object of the type DocumentLinkCollection.
- [TextFrame.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/documenttargets-property/llms.txt): Gets a collection of all targets in a text frame. The property value is an object of the type DocumentTargetCollection.
- [TextFrame.Drawings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/drawings-property/llms.txt): Gets a collection of all drawings contained in a text frame. The property value is an object of the type DataVisualization.DrawingCollection. The collection can be used to get or to alter a drawing's attributes and to add drawings to or to remove drawings from a text frame.
- [TextFrame.EditableRegions Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/editableregions-property/llms.txt): Gets a collection of all editable regions in the text frame. The property's value is an object of the type EditableRegionCollection.
- [TextFrame.Find Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/find-method/llms.txt): Finds a text string in a text frame.
- [TextFrame.FormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/formfields-property/llms.txt): Gets a collection of all form fields contained in a text frame. The property's value is an object of the type FormFieldCollection.
- [TextFrame.Frames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/frames-property/llms.txt): Gets a collection of all images, textframes, charts, barcodes and drawings in a text frame. The property value is an object of the type FrameCollection. The collection can be used to get or to alter common attributes.
- [TextFrame.GetTextFields Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/gettextfields-method/llms.txt): Returns a collection containing text fields of the specified types.
- [TextFrame.HypertextLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/hypertextlinks-property/llms.txt): Gets a collection of all hypertext links in a text frame. The property's value is an object of the type HypertextLinkCollection.
- [TextFrame.Images Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/images-property/llms.txt): Gets a collection of all images contained in a text frame. The property value is an object of the type ImageCollection.
- [TextFrame.InsertionMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/insertionmode-property/llms.txt): (Only for compatibility) Gets or sets a value determining whether a text frame is treated as a single character or the document's text either flows around or overwrites the text frame. If the documents text flows around or overwrites the text frame, this property also determines whether the text frame is moved with the text or fixed positioned on a page.
- [TextFrame.InternalMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/internalmargins-property/llms.txt): Gets or sets the distances, in twips, between the text frame's border line and the text. The property's value is an array of four variables specifying the distances in the following order: left, top, right and bottom. If a value is set to -1, it is not changed.
- [TextFrame.Lines Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/lines-property/llms.txt): Gets a collection of all text lines contained in a text frame. The property value is an object of the type LineCollection.
- [TextFrame.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/misspelledwords-property/llms.txt): Gets a collection of all misspelled words the text frame contains. The property value is an object of the type MisspelledWordCollection.
- [TextFrame.Paragraphs Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/paragraphs-property/llms.txt): Gets a collection of all paragraphs contained in a text frame. The property value is an object of the type ParagraphCollection.
- [TextFrame.Selection Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/selection-property/llms.txt): Gets or sets the current selection in a text frame. The property value is an object of the type Selection. For more information see the description of the Selection class.
- [TextFrame.SubTextParts Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/subtextparts-property/llms.txt): Gets a collection of all subtextparts in a text frame. The property's value is an object of the type SubTextPartCollection.
- [TextFrame.Tables Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/tables-property/llms.txt): Gets a collection of all tables in a text frame. The property's value is an object of the type TableCollection.
- [TextFrame.TablesOfContents Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/tablesofcontents-property/llms.txt): Gets a collection of all tables of contents in a text frame. The property's value is an object of the type TableOfContentsCollection.
- [TextFrame.TextChars Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/textchars-property/llms.txt): Gets a collection of all characters contained in a text frame. The property value is an object of the type TextCharCollection.
- [TextFrame.TextFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/textfields-property/llms.txt): Gets a collection of all standard text fields in a text frame. The property's value is an object of the type TextFieldCollection.
- [TextFrame.TrackedChanges Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/trackedchanges-property/llms.txt): Gets a collection of all changes made in a text frame. The property's value is an object of the type TrackedChangeCollection.
- [TextFrame.Transparency Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/transparency-property/llms.txt): Gets or sets the text frame's transparency. It must be a value between 0 and 255. Zero means opaque and 255 means completely transparent.

---

## Nearby

- **Previous:** [TextFormFieldEventArgs.TextFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfieldeventargs/textformfield-property/llms.txt)
- **Next:** [TextFrame.Activate Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/activate-method/llms.txt)
