Class TextToRtf
This class provides static methodsto transform plain text to Rtf
Inheritance
System.Object
TextToRtf
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 static class TextToRtf
Methods
| Improve this Doc View SourceConvertPlainTextToRtf(SegmentedRtf)
Converts plain text segments to Rtf text, returns string.Empty when there are no segments. Bookmarks will be preserved if they are present in the SegmentedRtf.
Declaration
public static string ConvertPlainTextToRtf(SegmentedRtf segmentedRtf)
Parameters
Type | Name | Description |
---|---|---|
SegmentedRtf | segmentedRtf |
Returns
Type | Description |
---|---|
System.String |
ConvertPlainTextToRtf(String)
Converts plain text to Rtf text, returns string.Empty for null or empty strings.
Declaration
public static string ConvertPlainTextToRtf(string plainText)
Parameters
Type | Name | Description |
---|---|---|
System.String | plainText |
Returns
Type | Description |
---|---|
System.String |