Click or drag to resize

Run Class

Represents a region of text with a common set of properties.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public sealed class Run : Inline

The Run type exposes the following members.

Public methodRun(DocumentModel)
Initializes a new instance of the Run class with empty Text.
Public methodRun(DocumentModel, String)
Initializes a new instance of the Run class with specified text.
Public propertyCharacterFormat
Gets or sets the character format.
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Overrides ElementDocument.)
Public propertyElementType
Gets the ElementType of this Element instance.
(Overrides ElementElementType.)
Public propertyParent
Gets the parent of this Element instance.
(Inherited from Element.)
Public propertyParentCollection
Gets the InlineCollection that contains this Inline instance.
(Inherited from Inline.)
Public propertyText
Gets or sets the text of this Run instance.

Run is an Inline element used to insert textual content to a document.

Run.Text property holds a text contained in the Run instance.

Run can be formatted directly using the Run.CharacterFormat property or, indirectly, using a CharacterStyle class. For more information, see character formatting example.

See Also