Class RtfToText
This class provides functionality to convert Rtf text to plain text using ANTLR.
Inheritance
System.Object
RtfToText
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.TextConverter.Rtf
Assembly: Dangl.TextConverter.dll
Syntax
public class RtfToText
Methods
| Improve this Doc View SourceConvertRtfToSegmentedText(String)
This will return a plain text representations of the Rtf text that is segmented by any bookmark identifiers in the file. It will contain plain text segments as well as bookmark start and end segments.
Declaration
public static SegmentedRtf ConvertRtfToSegmentedText(string rtfInput)
Parameters
Type | Name | Description |
---|---|---|
System.String | rtfInput |
Returns
Type | Description |
---|---|
SegmentedRtf |
ConvertRtfToText(String)
Returns a plain text representation of the Rtf text. If the text is no Rtf the string will be returned as is.
Declaration
public static string ConvertRtfToText(string rtfInput)
Parameters
Type | Name | Description |
---|---|---|
System.String | rtfInput |
Returns
Type | Description |
---|---|
System.String |