CWordHtmlConverter.ContainsWordTags  
 
Class: CWordHtmlConverter
(Method)


 
Declaration
 
C#
public
static Boolean ContainsWordTags(string sHtml)
 
 
Visual Basic
Public Shared Function ContainsWordTags(sHtml As String) As Boolean
 
 
Description
A static method that checks if a string with formatted HTML text contains Word tags.
 
This method can be called to examine and decide if a formatted HTML text should be converted and cleaned with the ConvertWordToHtml method. The source of the formatted HTML text can be Word or standard HTML.
 
Parameters
sHtml : HTML. The source of the HTML can be Word or standard HTML.
 
Return value
The method returns true if the formatted HTML text contains Word tags, otherwise it returns false.
 
Example
 
// Check if the string contains Word tags
if (CWordHtmlConverter.ContainsWordTags(sHtml))
{
   ...
}


There is a longer example available on this page.

 
 
< Go Back
 
 
SamLogic