• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ContentTextRun

A run of consecutive glyphs sharing the same font, size, and color from a content stream (spec §9). Enumerable into individual ContentGlyph values.

Inheritance
object
ContentTextRun
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class ContentTextRun

Properties

Bounds

Gets the bounding box of this run.

Declaration
public PdfRect Bounds { get; }
Property Value
Type Description
PdfRect

Count

Gets the number of glyphs in this run.

Declaration
public int Count { get; }
Property Value
Type Description
int

FontName

Gets the font name shared by all glyphs in this run.

Declaration
public string? FontName { get; }
Property Value
Type Description
string

FontSize

Gets the font size shared by all glyphs in this run.

Declaration
public double FontSize { get; }
Property Value
Type Description
double

Glyphs

Gets the glyphs in this run.

Declaration
public IReadOnlyList<ContentGlyph> Glyphs { get; }
Property Value
Type Description
IReadOnlyList<ContentGlyph>

this[int]

Gets the glyph at the specified index.

Declaration
public ContentGlyph this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
ContentGlyph

Text

Gets the text content of this run.

Declaration
public string Text { get; }
Property Value
Type Description
string

Methods

GetEnumerator()

Enumerates the glyphs in this run.

Declaration
public IEnumerator<ContentGlyph> GetEnumerator()
Returns
Type Description
IEnumerator<ContentGlyph>

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX