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
cellCellThe 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
paragraphParagraphThe paragraph.
Returns
- string
Text content as string.
GetText(Hyperlink)
Gets the text content of the hyperlinks’s elements as a string.
public static string GetText(this Hyperlink hyperlink)
Parameters
hyperlinkHyperlinkThe 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
elementsIEnumerable<DocumentObject>The elements.
Returns
- string
Text content as string.