ESRI.ArcGIS.Mobile.Client
ConvertHtmlToXaml Method
See Also  Send Feedback
HTMLConverter Namespace > HtmlToXamlConverter Class : ConvertHtmlToXaml Method

htmlString
Input html which may be badly formated xml.
asFlowDocument
true indicates that we need a FlowDocument as a root element; false means that Section or Span elements will be used dependeing on StartFragment/EndFragment comments locations.
Converts an html string into xaml string.

Syntax

Visual Basic (Declaration) 
Public Shared Function ConvertHtmlToXaml( _
   ByVal htmlString As String, _
   ByVal asFlowDocument As Boolean _
) As String
C# 
public static string ConvertHtmlToXaml( 
   string htmlString,
   bool asFlowDocument
)

Parameters

htmlString
Input html which may be badly formated xml.
asFlowDocument
true indicates that we need a FlowDocument as a root element; false means that Section or Span elements will be used dependeing on StartFragment/EndFragment comments locations.

Return Value

Well-formed xml representing XAML equivalent for the input html string.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also