Show / Hide Table of Contents

# Class TextRun

##### Inheritance

object
ContentElement
TextRun

##### Inherited Members

ContentElement.m_impl
ContentElement.m_ref
ContentElement.AsContentNode()
ContentElement.AsTextRun()
ContentElement.AsParagraph()
ContentElement.AsTableCell()
ContentElement.AsTableRow()
ContentElement.AsTable()
ContentElement.AsList()
ContentElement.AsListItem()
ContentElement.GetTextStyledElement()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.Layout

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class TextRun : ContentElement

### Constructors

#### TextRun(IntPtr, object)

##### Declaration

    public TextRun(IntPtr impl, object reference)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl |
object | reference |

### Methods

#### GetText()

Gets the text content of the TextRun object.

##### Declaration

    public string GetText()

##### Returns

Type | Description
--- | ---
string | The text content of the TextRun object.

#### SetText(string)

Sets the text content of the TextRun object.

##### Declaration

    public void SetText(string text)

##### Parameters

Type | Name | Description
--- | --- | ---
string | text | The text content to set.