Table of Contents

Method GetText

Namespace
MigraDoc.DocumentObjectModel.Visitors
Assembly
MigraDoc.DocumentObjectModel.dll

GetText(Cell)

Gets the text content of the cell’s elements as a string.

public static string GetText(this Cell cell)

Parameters

cell Cell

The cell.

Returns

string

Text content as string.

GetText(Paragraph)

Gets the text content of the paragraph’s elements as a string.

public static string GetText(this Paragraph paragraph)

Parameters

paragraph Paragraph

The paragraph.

Returns

string

Text content as string.

Gets the text content of the hyperlinks’s elements as a string.

public static string GetText(this Hyperlink hyperlink)

Parameters

hyperlink Hyperlink

The hyperlink.

Returns

string

Text content as string.

GetText(IEnumerable<DocumentObject?>)

Gets the text content of the elements as a string.

public static string GetText(this IEnumerable<DocumentObject?> elements)

Parameters

elements IEnumerable<DocumentObject>

The elements.

Returns

string

Text content as string.