Share via


OpenXmlReader.GetText Method

Gets the text of the element if the element is OpenXmlLeafTextElement. Return String.Empry for other elements.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public MustOverride Function GetText As String
'Usage
Dim instance As OpenXmlReader
Dim returnValue As String

returnValue = instance.GetText()
public abstract string GetText()

Return Value

Type: System.String
The text of the element if the element is OpenXmlLeafTextElement. Return String.Empry for other elements.

See Also

Reference

OpenXmlReader Class

OpenXmlReader Members

DocumentFormat.OpenXml Namespace