Share via


NSAttributedString.CreateWithHTML Method

Definition

Overloads

CreateWithHTML(NSData, NSDictionary, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

CreateWithHTML(NSData, NSUrl, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

CreateWithHTML(NSData, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

CreateWithHTML(NSData, NSAttributedStringDocumentAttributes, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

CreateWithHTML(NSData, NSDictionary, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

public static Foundation.NSAttributedString? CreateWithHTML(Foundation.NSData htmlData, Foundation.NSDictionary options, out Foundation.NSDictionary resultDocumentAttributes);
static member CreateWithHTML : Foundation.NSData * Foundation.NSDictionary * NSDictionary -> Foundation.NSAttributedString

Parameters

htmlData
NSData

The data to parse, in HTML format.

options
NSDictionary

Any additional options when loading the HTML content.

resultDocumentAttributes
NSDictionary

Upon return, any document-specific attributes.

Returns

A newly created NSAttributedString, created from an HTML document

Applies to

CreateWithHTML(NSData, NSUrl, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

public static Foundation.NSAttributedString? CreateWithHTML(Foundation.NSData htmlData, Foundation.NSUrl baseUrl, out Foundation.NSDictionary resultDocumentAttributes);
static member CreateWithHTML : Foundation.NSData * Foundation.NSUrl * NSDictionary -> Foundation.NSAttributedString

Parameters

htmlData
NSData

The data to parse, in HTML format.

baseUrl
NSUrl

The base URL for any links in the HTML content.

resultDocumentAttributes
NSDictionary

Upon return, any document-specific attributes.

Returns

A newly created NSAttributedString, created from an HTML document

Applies to

CreateWithHTML(NSData, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

public static Foundation.NSAttributedString? CreateWithHTML(Foundation.NSData htmlData, out Foundation.NSDictionary resultDocumentAttributes);
static member CreateWithHTML : Foundation.NSData * NSDictionary -> Foundation.NSAttributedString

Parameters

htmlData
NSData

The data to parse, in HTML format.

resultDocumentAttributes
NSDictionary

Upon return, any document-specific attributes.

Returns

A newly created NSAttributedString, created from an HTML document

Applies to

CreateWithHTML(NSData, NSAttributedStringDocumentAttributes, NSDictionary)

Create an NSAttributedString by parsing the htmlData data as HTML.

public static Foundation.NSAttributedString? CreateWithHTML(Foundation.NSData htmlData, Foundation.NSAttributedStringDocumentAttributes options, out Foundation.NSDictionary resultDocumentAttributes);
static member CreateWithHTML : Foundation.NSData * Foundation.NSAttributedStringDocumentAttributes * NSDictionary -> Foundation.NSAttributedString

Parameters

htmlData
NSData

The data to parse, in HTML format.

options
NSAttributedStringDocumentAttributes

Any additional options when loading the HTML content.

resultDocumentAttributes
NSDictionary

Upon return, any document-specific attributes.

Returns

A newly created NSAttributedString, created from an HTML document

Applies to