NSAttributedString extension type

NSAttributedString

on
Implemented types
Available extensions

Constructors

NSAttributedString()
Returns a new instance of NSAttributedString constructed with the default new method.
NSAttributedString.as(ObjCObject other)
Constructs a NSAttributedString that points to the same underlying object as other.
NSAttributedString.fromPointer(Pointer<ObjCObjectImpl> other, {bool retain = false, bool release = false})
Constructs a NSAttributedString that wraps the given raw object pointer.

Properties

debugDescription NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

debugDescription
no setter
description NSString

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

description
no setter
hash int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

hash
no setter
hashCode int
The hash code for this object.
no setterinherited
isProxy bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
isProxy bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isProxy
no setter
length int

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

length
no setter
object$ ObjCObject
final
ref ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string NSString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

string
no setter
superclass ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

superclass
no setter
writableTypeIdentifiersForItemProvider NSArray

Available on NSAttributedString, provided by the NSAttributedString_ItemProvider extension

writableTypeIdentifiersForItemProvider
no setter

Methods

addObserver(Observer observer, {required NSString forKeyPath, int options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
attribute(NSString attrName, {required int atIndex, required Pointer<NSRange> effectiveRange}) ObjCObject?

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

attribute:atIndex:effectiveRange:
attribute$1(NSString attrName, {required int atIndex, required Pointer<NSRange> longestEffectiveRange, required NSRange inRange}) ObjCObject?

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

attribute:atIndex:longestEffectiveRange:inRange:
attributedStringByInflectingString() NSAttributedString

Available on NSAttributedString, provided by the NSMorphology extension

attributedStringByInflectingString
attributedSubstringFromRange(NSRange range) NSAttributedString

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

attributedSubstringFromRange:
attributesAtIndex(int location, {required Pointer<NSRange> effectiveRange}) NSDictionary

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

attributesAtIndex:effectiveRange:
attributesAtIndex$1(int location, {required Pointer<NSRange> longestEffectiveRange, required NSRange inRange}) NSDictionary

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

attributesAtIndex:longestEffectiveRange:inRange:
autorelease() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

autorelease
boundingRectWithSize(CGSize size, {required int options, NSStringDrawingContext? context}) CGRect

Available on NSAttributedString, provided by the NSExtendedStringDrawing$1 extension

boundingRectWithSize:options:context:
class$() ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

class
conformsToProtocol(Protocol aProtocol) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

conformsToProtocol:
containsAttachmentsInRange(NSRange range) bool

Available on NSAttributedString, provided by the NSAttributedStringKitAdditions extension

containsAttachmentsInRange:
copy() ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

copy
copyWithZone(Pointer<NSZone> zone) ObjCObject

Available on NSCopying, provided by the NSCopying$Methods extension

copyWithZone:
dataFromRange(NSRange range, {required NSDictionary documentAttributes}) NSData?

Available on NSAttributedString, provided by the NSAttributedStringDocumentFormats extension

dataFromRange:documentAttributes:error:
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
drawAtPoint(CGPoint point) → void

Available on NSAttributedString, provided by the NSStringDrawing$1 extension

drawAtPoint:
drawInRect(CGRect rect) → void

Available on NSAttributedString, provided by the NSStringDrawing$1 extension

drawInRect:
drawWithRect(CGRect rect, {required int options, NSStringDrawingContext? context}) → void

Available on NSAttributedString, provided by the NSExtendedStringDrawing$1 extension

drawWithRect:options:context:
encodeWithCoder(NSCoder coder) → void

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

encodeWithCoder:
encodeWithCoder(NSCoder coder) → void

Available on NSCoding, provided by the NSCoding$Methods extension

encodeWithCoder:
encodeWithCoder(NSCoder coder) → void

Available on NSSecureCoding, provided by the NSSecureCoding$Methods extension

encodeWithCoder:
enumerateAttribute(NSString attrName, {required NSRange inRange, required int options, required ObjCBlock<Void Function(Pointer<ObjCObjectImpl>?, NSRange, Pointer<Bool>)> usingBlock}) → void

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

enumerateAttribute:inRange:options:usingBlock:
enumerateAttributesInRange(NSRange enumerationRange, {required int options, required ObjCBlock<Void Function(NSDictionary, NSRange, Pointer<Bool>)> usingBlock}) → void

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

enumerateAttributesInRange:options:usingBlock:
fileWrapperFromRange(NSRange range, {required NSDictionary documentAttributes}) NSFileWrapper?

Available on NSAttributedString, provided by the NSAttributedStringDocumentFormats extension

fileWrapperFromRange:documentAttributes:error:
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
init() NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

init
init() NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
initWithAttributedString(NSAttributedString attrStr) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithAttributedString:
initWithAttributedString(NSAttributedString attrStr) NSAttributedString

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

initWithAttributedString:
initWithCoder(NSCoder coder) NSCoding?

Available on NSCoding, provided by the NSCoding$Methods extension

initWithCoder:
initWithCoder(NSCoder coder) NSSecureCoding?

Available on NSSecureCoding, provided by the NSSecureCoding$Methods extension

initWithCoder:
initWithCoder(NSCoder coder) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithCoder:
initWithContentsOfMarkdownFileAtURL(NSURL markdownFile, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedStringCreateFromMarkdown extension

initWithContentsOfMarkdownFileAtURL:options:baseURL:error:
initWithContentsOfMarkdownFileAtURL(NSURL markdownFile, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithContentsOfMarkdownFileAtURL:options:baseURL:error:
initWithData(NSData data, {required NSDictionary options, required Pointer<Pointer<ObjCObjectImpl>> documentAttributes}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedStringDocumentFormats extension

initWithData:options:documentAttributes:error:
initWithFileURL(NSURL url, {required NSDictionary options, required Pointer<Pointer<ObjCObjectImpl>> documentAttributes}) NSAttributedString?

Available on NSAttributedString, provided by the NSDeprecatedKitAdditions extension

initWithFileURL:options:documentAttributes:error:
initWithFormat(NSAttributedString format, {required int options, NSLocale? locale}) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithFormat:options:locale:
initWithFormat(NSAttributedString format, {required int options, NSLocale? locale}) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedStringFormatting extension

initWithFormat:options:locale:
initWithFormat$1(NSAttributedString format, {required int options, NSLocale? locale, required NSDictionary context}) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedStringFormatting extension

initWithFormat:options:locale:context:
initWithFormat$1(NSAttributedString format, {required int options, NSLocale? locale, required NSDictionary context}) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithFormat:options:locale:context:
initWithMarkdown(NSData markdown, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedStringCreateFromMarkdown extension

initWithMarkdown:options:baseURL:error:
initWithMarkdown(NSData markdown, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithMarkdown:options:baseURL:error:
initWithMarkdownString(NSString markdownString, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedStringCreateFromMarkdown extension

initWithMarkdownString:options:baseURL:error:
initWithMarkdownString(NSString markdownString, {NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithMarkdownString:options:baseURL:error:
initWithString(NSString str) NSAttributedString

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

initWithString:
initWithString(NSString str) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithString:
initWithString$1(NSString str, {NSDictionary? attributes}) NSAttributedString

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

initWithString:attributes:
initWithString$1(NSString str, {NSDictionary? attributes}) NSAttributedString

Available on NSAttributedString, provided by the NSAttributedString$Methods extension

initWithString:attributes:
initWithURL(NSURL url, {required NSDictionary options, required Pointer<Pointer<ObjCObjectImpl>> documentAttributes}) NSAttributedString?

Available on NSAttributedString, provided by the NSAttributedStringDocumentFormats extension

initWithURL:options:documentAttributes:error:
isEqual(ObjCObject object) bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isEqual(ObjCObject object) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isEqual:
isEqualToAttributedString(NSAttributedString other) bool

Available on NSAttributedString, provided by the NSExtendedAttributedString extension

isEqualToAttributedString:
isKindOfClass(ObjCObject aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isKindOfClass(ObjCObject aClass) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObject aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
isMemberOfClass(ObjCObject aClass) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

isMemberOfClass:
itemProviderVisibilityForRepresentationWithTypeIdentifier(NSString typeIdentifier) int

Available on NSAttributedString, provided by the NSAttributedString_ItemProvider extension

itemProviderVisibilityForRepresentationWithTypeIdentifier:
loadDataWithTypeIdentifier(NSString typeIdentifier, {required ObjCBlock<Void Function(NSData?, NSError?)> forItemProviderCompletionHandler}) NSProgress?

Available on NSAttributedString, provided by the NSAttributedString_ItemProvider extension

loadDataWithTypeIdentifier:forItemProviderCompletionHandler:
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
mutableCopyWithZone(Pointer<NSZone> zone) ObjCObject

Available on NSMutableCopying, provided by the NSMutableCopying$Methods extension

mutableCopyWithZone:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector(Pointer<ObjCSelector> aSelector) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject}) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) ObjCObject

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObject withObject, required ObjCObject withObject$1}) ObjCObject

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

performSelector:withObject:withObject:
prefersRTFDInRange(NSRange range) bool

Available on NSAttributedString, provided by the NSAttributedStringKitAdditions extension

prefersRTFDInRange:
release() → void

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

release
respondsToSelector(Pointer<ObjCSelector> aSelector) bool

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

respondsToSelector:
respondsToSelector(Pointer<ObjCSelector> sel) bool

Available on ObjCObject, provided by the RespondsToSelector extension

retain() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retain
retainCount() int

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

retainCount
self() NSObjectProtocol

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

self
size() CGSize

Available on NSAttributedString, provided by the NSStringDrawing$1 extension

size
toString() String
A string representation of this object.
inherited
zone() Pointer<NSZone>

Available on NSObjectProtocol, provided by the NSObjectProtocol$Methods extension

zone
zone() Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() NSAttributedString
alloc
override
allocWithZone(Pointer<NSZone> zone) NSAttributedString
allocWithZone:
override
getSupportsSecureCoding() bool
supportsSecureCoding
isA(ObjCObject obj) bool
Returns whether obj is an instance of NSAttributedString.
override
localizedAttributedStringWithFormat(NSAttributedString format) NSAttributedString
localizedAttributedStringWithFormat:
localizedAttributedStringWithFormat$1(NSAttributedString format, {required NSDictionary context}) NSAttributedString
localizedAttributedStringWithFormat:context:
localizedAttributedStringWithFormat$2(NSAttributedString format, {required int options}) NSAttributedString
localizedAttributedStringWithFormat:options:
localizedAttributedStringWithFormat$3(NSAttributedString format, {required int options, required NSDictionary context}) NSAttributedString
localizedAttributedStringWithFormat:options:context:
new$() NSAttributedString
new
override