Share via


NSAttributedString.Create Method

Definition

Overloads

Name Description
Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)
Create(NSData, NSError)

Create a new NSAttributedString.

Create(NSFileWrapper, NSDictionary)

Create an NSAttributedString by parsing the wrapper with RTFD data.

Create(NSUrl, NSError)

Create a new NSAttributedString.

Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)
Create(NSData, NSAttributedStringDocumentAttributes, NSError)

Create a new NSAttributedString.

Create(NSUrl, NSAttributedStringDocumentAttributes, NSError)

Create a new NSAttributedString.

Create(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Create a new NSAttributedString.

Create(NSData, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from markdown data.

Create(NSData, NSDictionary, NSDictionary, NSError)

Create a new NSAttributedString.

Create(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Create a new NSAttributedString.

Create(NSUrl, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from a markdown file.

Create(NSUrl, NSDictionary, NSDictionary, NSError)

Create a new NSAttributedString.

Create(String, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from a string with markdown.

Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)

[Foundation.Export("attributedStringWithAdaptiveImageGlyph:attributes:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSAttributedString Create(AppKit.NSAdaptiveImageGlyph adaptiveImageGlyph, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> attributes);
[<Foundation.Export("attributedStringWithAdaptiveImageGlyph:attributes:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : AppKit.NSAdaptiveImageGlyph * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> Foundation.NSAttributedString

Parameters

adaptiveImageGlyph
NSAdaptiveImageGlyph

Returns

Attributes

Applies to

Create(NSData, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSData data, out Foundation.NSError? error);
static member Create : Foundation.NSData * NSError -> Foundation.NSAttributedString

Parameters

data
NSData

The data to load.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSFileWrapper, NSDictionary)

Create an NSAttributedString by parsing the wrapper with RTFD data.

public static Foundation.NSAttributedString? Create(Foundation.NSFileWrapper wrapper, out Foundation.NSDictionary resultDocumentAttributes);
static member Create : Foundation.NSFileWrapper * NSDictionary -> Foundation.NSAttributedString

Parameters

wrapper
NSFileWrapper

The data to parse, in RTFD format.

resultDocumentAttributes
NSDictionary

Upon return, any document-specific attributes.

Returns

A newly created NSAttributedString, created from a Microsoft Word document

Applies to

Create(NSUrl, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSUrl url, out Foundation.NSError? error);
static member Create : Foundation.NSUrl * NSError -> Foundation.NSAttributedString

Parameters

url
NSUrl

A url to the document to load.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSAdaptiveImageGlyph, NSDictionary<NSString,NSObject>)

[Foundation.Export("attributedStringWithAdaptiveImageGlyph:attributes:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSAttributedString Create(UIKit.NSAdaptiveImageGlyph adaptiveImageGlyph, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> attributes);
[<Foundation.Export("attributedStringWithAdaptiveImageGlyph:attributes:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : UIKit.NSAdaptiveImageGlyph * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> Foundation.NSAttributedString

Parameters

adaptiveImageGlyph
NSAdaptiveImageGlyph

Returns

Attributes

Applies to

Create(NSData, NSAttributedStringDocumentAttributes, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSData data, Foundation.NSAttributedStringDocumentAttributes options, out Foundation.NSError? error);
static member Create : Foundation.NSData * Foundation.NSAttributedStringDocumentAttributes * NSError -> Foundation.NSAttributedString

Parameters

data
NSData

The data to load.

options
NSAttributedStringDocumentAttributes

A dictionary of attributes that specifies how to interpret the document contents.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSUrl, NSAttributedStringDocumentAttributes, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSUrl url, Foundation.NSAttributedStringDocumentAttributes options, out Foundation.NSError? error);
static member Create : Foundation.NSUrl * Foundation.NSAttributedStringDocumentAttributes * NSError -> Foundation.NSAttributedString

Parameters

url
NSUrl

A url to the document to load.

options
NSAttributedStringDocumentAttributes

A dictionary of attributes that specifies how to interpret the document contents.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSData data, Foundation.NSAttributedStringDocumentAttributes options, out Foundation.NSDictionary resultDocumentAttributes, out Foundation.NSError? error);
static member Create : Foundation.NSData * Foundation.NSAttributedStringDocumentAttributes * NSDictionary * NSError -> Foundation.NSAttributedString

Parameters

data
NSData

The data to load.

options
NSAttributedStringDocumentAttributes

A dictionary of attributes that specifies how to interpret the document contents.

resultDocumentAttributes
NSDictionary

Upon return, a dictionary of document-specific keys.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSData, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from markdown data.

public static Foundation.NSAttributedString? Create(Foundation.NSData markdown, Foundation.NSAttributedStringMarkdownParsingOptions? options, Foundation.NSUrl? baseUrl, out Foundation.NSError? error);
static member Create : Foundation.NSData * Foundation.NSAttributedStringMarkdownParsingOptions * Foundation.NSUrl * NSError -> Foundation.NSAttributedString

Parameters

markdown
NSData

The markdown data to load.

options
NSAttributedStringMarkdownParsingOptions

A dictionary of attributes that specifies how to interpret the document contents.

baseUrl
NSUrl

The base url to use when resolving markdown urls.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSData, NSDictionary, NSDictionary, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSData data, Foundation.NSDictionary options, out Foundation.NSDictionary resultDocumentAttributes, out Foundation.NSError? error);
static member Create : Foundation.NSData * Foundation.NSDictionary * NSDictionary * NSError -> Foundation.NSAttributedString

Parameters

data
NSData

The data to load.

options
NSDictionary

A dictionary of attributes that specifies how to interpret the document contents.

resultDocumentAttributes
NSDictionary

Upon return, a dictionary of document-specific keys.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSUrl url, Foundation.NSAttributedStringDocumentAttributes options, out Foundation.NSDictionary resultDocumentAttributes, out Foundation.NSError? error);
static member Create : Foundation.NSUrl * Foundation.NSAttributedStringDocumentAttributes * NSDictionary * NSError -> Foundation.NSAttributedString

Parameters

url
NSUrl

A url to the document to load.

options
NSAttributedStringDocumentAttributes

A dictionary of attributes that specifies how to interpret the document contents.

resultDocumentAttributes
NSDictionary

Upon return, a dictionary of document-specific keys.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSUrl, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from a markdown file.

public static Foundation.NSAttributedString? Create(Foundation.NSUrl markdownFile, Foundation.NSAttributedStringMarkdownParsingOptions? options, Foundation.NSUrl? baseUrl, out Foundation.NSError? error);
static member Create : Foundation.NSUrl * Foundation.NSAttributedStringMarkdownParsingOptions * Foundation.NSUrl * NSError -> Foundation.NSAttributedString

Parameters

markdownFile
NSUrl

The url of the file to load.

options
NSAttributedStringMarkdownParsingOptions

A dictionary of attributes that specifies how to interpret the document contents.

baseUrl
NSUrl

The base url to use when resolving markdown urls.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(NSUrl, NSDictionary, NSDictionary, NSError)

Create a new NSAttributedString.

public static Foundation.NSAttributedString? Create(Foundation.NSUrl url, Foundation.NSDictionary options, out Foundation.NSDictionary resultDocumentAttributes, out Foundation.NSError? error);
static member Create : Foundation.NSUrl * Foundation.NSDictionary * NSDictionary * NSError -> Foundation.NSAttributedString

Parameters

url
NSUrl

A url to the document to load.

options
NSDictionary

A dictionary of attributes that specifies how to interpret the document contents.

resultDocumentAttributes
NSDictionary

Upon return, a dictionary of document-specific keys.

error
NSError

The error if an error occurred.

Returns

Applies to

Create(String, NSAttributedStringMarkdownParsingOptions, NSUrl, NSError)

Create a new NSAttributedString from a string with markdown.

public static Foundation.NSAttributedString? Create(string markdownString, Foundation.NSAttributedStringMarkdownParsingOptions? options, Foundation.NSUrl? baseUrl, out Foundation.NSError? error);
static member Create : string * Foundation.NSAttributedStringMarkdownParsingOptions * Foundation.NSUrl * NSError -> Foundation.NSAttributedString

Parameters

markdownString
String

The markdown string to load.

options
NSAttributedStringMarkdownParsingOptions

A dictionary of attributes that specifies how to interpret the document contents.

baseUrl
NSUrl

The base url to use when resolving markdown urls.

error
NSError

The error if an error occurred.

Returns

Applies to