Interface IHtmlConverter
Defines methods to add the Html string to document ITextBody.
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Portable.dll
Syntax
public interface IHtmlConverter
Methods
AppendToTextBody(ITextBody, String, Int32, Int32)
Appends the html string to ITextBody without style at specified index
Declaration
void AppendToTextBody(ITextBody dlsTextBody, string html, int paragraphIndex, int paragraphItemIndex)
Parameters
Type | Name | Description |
---|---|---|
ITextBody | dlsTextBody | The ITextBody to which the string is to be added. |
System.String | html | The HTML string. |
System.Int32 | paragraphIndex | The zero-based index of the paragraph to insert the html string. |
System.Int32 | paragraphItemIndex | The zero-based index of the paragraph item to insert the html string. |
AppendToTextBody(ITextBody, String, Int32, Int32, IWParagraphStyle, ListStyle)
Appends the Html string to ITextBody with style at specified index
Declaration
void AppendToTextBody(ITextBody dlsTextBody, string html, int paragraphIndex, int paragraphItemIndex, IWParagraphStyle style, ListStyle listStyle)
Parameters
Type | Name | Description |
---|---|---|
ITextBody | dlsTextBody | The ITextBody to which the Html string is to be added. |
System.String | html | The Html string. |
System.Int32 | paragraphIndex | The zero-based index of the paragraph to insert the html string. |
System.Int32 | paragraphItemIndex | The zero-based index of the paragraph item to insert the html string. |
IWParagraphStyle | style | The IWParagraphStyle object that specifies the style for the Html string |
ListStyle | listStyle | The ListStyle object that specifies the list style for the Html string |
IsValid(String, XHTMLValidationType)
Determines whether the specified Html string is valid.
Declaration
bool IsValid(string html, XHTMLValidationType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | The Html string. |
XHTMLValidationType | type | The XHTMLValidationType member specifies the type to validate the Html string. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified Html string is valid, otherwise false. |
IsValid(String, XHTMLValidationType, out String)
Determines whether the specified Html string is valid.
Declaration
bool IsValid(string html, XHTMLValidationType type, out string exceptionMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | The Html string. |
XHTMLValidationType | type | The XHTMLValidationType member specifies the type to validate the Html string. |
System.String | exceptionMessage | The string that specifies the exception message. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified Html string is valid, otherwise false. |