[This is preliminary documentation and is subject to change.]

Converts the input string into html. This method changes the line break and other formatting tag to its equivalent html format. It can be used to preserve formatting of the textarea control when dispayed on the screen as label.

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static string ConvertHtml(
	string text,
	bool allow,
	bool isBreak,
	bool removeLastBreak
)
Visual Basic (Declaration)
Public Shared Function ConvertHtml ( _
	text As String, _
	allow As Boolean, _
	isBreak As Boolean, _
	removeLastBreak As Boolean _
) As String
Visual C++
public:
static String^ ConvertHtml(
	String^ text, 
	bool allow, 
	bool isBreak, 
	bool removeLastBreak
)

Parameters

text
Type: System..::.String
The input text to be converted
allow
Type: System..::.Boolean
Whether to allow < tags to pass through as is
isBreak
Type: System..::.Boolean
Whether to convert the line break
removeLastBreak
Type: System..::.Boolean
Removes the break at the last line if isBreak is true

Return Value

The converted html string

See Also