Condividi tramite


NSAttributedString Classe

Definizione

Stringhe che possono essere annotate con un set di attributi.

[Foundation.Register("NSAttributedString", true)]
public class NSAttributedString : Foundation.NSObject, AppKit.INSPasteboardReading, AppKit.INSPasteboardWriting, Foundation.INSMutableCopying, Foundation.INSSecureCoding, IDisposable
type NSAttributedString = class
    inherit NSObject
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface INSCopying
    interface INSMutableCopying
    interface INSSecureCoding
    interface INSPasteboardReading
    interface INSPasteboardWriting
Ereditarietà
NSAttributedString
Derivato
Attributi
Implementazioni

Commenti

Il tipo NSAttributedString rappresenta una stringa con una serie di attributi applicati in modo uniforme.

Il tipo complementare NSMutableAttributedString può essere usato per creare stringhe con attributi sovrapposti e il cui contenuto può essere modificato dopo la creazione.

Questi tipi vengono in genere usati per associare informazioni agli elementi della stringa che determinano il tipo di carattere e i colori da usare, nonché gli attributi di rendering, ad esempio la kerning o come eseguire il rendering delle legature in un'esecuzione specifica di codice.

Queste classi non determinano il significato o il comportamento degli attributi in una stringa, ma tengono traccia degli attributi. Il significato effettivo di questi attributi viene interpretato dal consumer di questi oggetti.

NSAttributedStrings viene creato con una stringa e un set di attributi. Il costruttore predefinito accetta una stringa e un oggetto NSDictionary in cui le chiavi rappresentano gli attributi e i valori di ogni elemento rappresentano il valore di tale attributo.

Per semplificare molti scenari comuni, MonoTouch offre costruttori con tipi sicuri per creare facilmente stringhe con attributi da usare con CoreText o UIKit. Questi costruttori forniscono la sicurezza dei tipi ed eliminano gli errori di programmazione causati accidentalmente dalla creazione accidentale di attributi non riconosciuti da un back-end.

Per creare NSAttributedStrings che è possibile usare con il CTStringAttributes rendering di CoreText, è possibile creare un'istanza della classe, impostare le relative proprietà sugli attributi desiderati e quindi richiamare il costruttore NSAttributedString con esso.

Per creare NSAttributedStrings che è possibile usare con il rendering di UIKit, creare un'istanza della UIStringAttributes classe, impostare le relative proprietà sugli attributi desiderati e quindi richiamare il costruttore NSAttributedString con esso.

Gli esempi seguenti illustrano come usare la sintassi dell'inizializzatore di oggetti C# per inizializzare ctStringAttributes e UIStringAttributes per configurare gli attributi. È possibile usare più volte questi attributi con stringhe con attributi diversi:

// 
// Using NSAttributedString with CoreText
//
var attributedString = new NSAttributedString ("Hello, world",
       new CTStringAttributes () {
              ForegroundColorFromContext =  true,
              Font = new CTFont ("Arial", 24)
       });

// Pass the NSAttributedString to a CTLine and draw the CTLine.
using (var textLine = new CTLine (attributedString)) {
       textLine.Draw (gctx);
}

// 
// Using NSAttributedString with UIKit
//
var myText = new NSAttributedString ("Hello, world",
       new UIStringAttributes () {
              ForegroundColor =  UIColor.Red,
	      KerningAdjustment = 3
       });
label.AttributedText = myText;

Sebbene sia CTStringAttributesUIStringAttributes siano utili per creare attributi che possono essere usati in un secondo momento con stringhe con attributi, è anche possibile usare C:Foundation.NSAttributedString(string,UIKit.UIFont,UIKit.UIColor,UIKit.UIColor,UIKit.UIColor,UIKit.UIKit.NSParagraphStyle,Foundation.NSLigatureType,float,Foundation.NSUnderlineStyle,UIKit.NSShadow,float,Foundation.NSUnderlineStyle con parametri denominati C# per creare rapidamente stringhe inline con attributi.

//
// This example shows how to create an NSAttributedString for
// use with UIKit without creating the attributes separately
//
var text = new NSAttributedString (
    "Hello, World",
    font: UIFont.FromName ("HoeflerText-Regular", 24.0f),
    foregroundColor: UIColor.Red,
    strokeWidth: 4
);

È anche possibile creare NSAttributedStrings con l'API NSDictionary, anche se non offre sicurezza dei tipi né impedisce errori comuni. Per usarlo, in genere si usano le varie proprietà NSString che terminano in "AttributedName" che fanno parte di questa classe.

//
// This example shows how to create an NSAttributedString for
// use with UIKit using NSDictionaries
//
var dict = new NSMutableDictionary () {
    { NSAttributedString.FontAttributeName, UIFont.FromName ("HoeflerText-Regular", 24.0f), },
    { NSAttributedString.ForegroundColorAttributeName, UIColor.Black }
};

var text = new NSAttributedString (
	"Hello, World", dict);

Costruttori

NSAttributedString()

Costruttore predefinito che inizializza una nuova istanza di questa classe senza parametri.

NSAttributedString(IntPtr)

Costruttore usato durante la creazione di rappresentazioni gestite di oggetti non gestiti; Chiamato dal runtime.

NSAttributedString(NSAttributedString)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSCoder)

Costruttore che inizializza l'oggetto dai dati archiviati nell'oggetto unrchiver.

NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSDictionary, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSDictionary, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSData, NSUrl, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSFileWrapper, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSObjectFlag)

Costruttore per chiamare classi derivate per ignorare l'inizializzazione e allocare semplicemente l'oggetto.

NSAttributedString(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSUrl, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSUrl, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSUrl, NSDictionary, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(NSUrl, NSError)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(String)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(String, CTStringAttributes)

Crea un oggetto NSAttributedString da usare con le funzioni di rendering CoreText.

NSAttributedString(String, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(String, NSDictionary)

Crea un NSAttributedString con attributi definiti dall'utente specificati in un dizionario.

NSAttributedString(String, NSFont, NSColor, NSColor, NSColor, NSColor, NSColor, NSUnderlineStyle, NSUnderlineStyle, NSParagraphStyle, Single, NSShadow, NSUrl, Boolean, NSTextAttachment, NSLigatureType, Single, Single, Single, Single, NSCursor, String, Int32, NSGlyphInfo, NSArray, Boolean, NSTextLayoutOrientation, NSTextAlternatives, NSSpellingState)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(String, NSStringAttributes)

Stringhe che possono essere annotate con un set di attributi.

NSAttributedString(String, UIFont, UIColor, UIColor, UIColor, NSParagraphStyle, NSLigatureType, Single, NSUnderlineStyle, NSShadow, Single, NSUnderlineStyle)

Crea una stringa con attributi UIKit con gli attributi specificati nei parametri.

NSAttributedString(String, UIStringAttributes)

Stringhe che possono essere annotate con un set di attributi.

Proprietà

Class

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
ClassHandle

Handle per questa classe.

ContainsAttachments

Stringhe che possono essere annotate con un set di attributi.

DebugDescription

Descrizione significativa dello sviluppatore di questo oggetto.

(Ereditato da NSObject)
Description

Descrizione dell'oggetto, versione Objective-C di ToString.

(Ereditato da NSObject)
Handle

Gestire (puntatore) alla rappresentazione dell'oggetto non gestita.

(Ereditato da NSObject)
IsDirectBinding

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
IsProxy

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Length

Numero di caratteri in questa stringa.

LowLevelValue

Versione di basso livello della proprietà Value, restituisce un handle all'oggetto Objective-C NSString sottostante.

ReadableTypeIdentifiers

Stringhe che possono essere annotate con un set di attributi.

RetainCount

Restituisce il conteggio di conservazione Objective-C corrente per l'oggetto.

(Ereditato da NSObject)
Self

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Size

Stringhe che possono essere annotate con un set di attributi.

Superclass

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
SuperHandle

Handle usato per rappresentare i metodi nella classe di base per questo oggetto NSObject.

(Ereditato da NSObject)
TextLayoutSectionOrientation

Stringhe che possono essere annotate con un set di attributi.

TextLayoutSectionRange

Stringhe che possono essere annotate con un set di attributi.

TextLayoutSectionsAttribute

Stringhe che possono essere annotate con un set di attributi.

UnderlineByWordMaskAttributeName

Stringhe che possono essere annotate con un set di attributi.

Value

Contenuto dell'oggetto come stringa.

WritableTypeIdentifiers

Stringhe che possono essere annotate con un set di attributi.

WritableTypeIdentifiersForItemProvider

Stringhe che possono essere annotate con un set di attributi.

Zone

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)

Metodi

AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)

Registra un oggetto per essere osservato esternamente (usando NSString keyPath).   Le modifiche osservate vengono inviate al metodo dell'oggetto ObserveValue(NSString, NSObject, NSDictionary, IntPtr) dell'osservatore.

(Ereditato da NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr)

Registra un oggetto per essere osservato esternamente (usando string keyPath).   Le modifiche osservate vengono inviate al metodo dell'oggetto ObserveValue(NSString, NSObject, NSDictionary, IntPtr) dell'osservatore.

(Ereditato da NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registra un oggetto per essere osservato esternamente usando un metodo arbitrario.

(Ereditato da NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registra un oggetto per essere osservato esternamente usando un metodo arbitrario.

(Ereditato da NSObject)
AwakeFromNib()

Chiamato dopo che l'oggetto è stato caricato dal file nib. Gli overridi devono chiamare la base. AwakeFromNib().

(Ereditato da NSObject)
BeginInvokeOnMainThread(Action)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Richiama in modo asincrono il codice specificato nel thread dell'interfaccia utente principale.

(Ereditato da NSObject)
Bind(NSString, NSObject, String, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Bind(String, NSObject, String, NSDictionary)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
BindingInfo(String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
BindingOptionDescriptions(String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
BindingValueClass(String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
BoundingRectWithSize(CGSize, NSStringDrawingOptions)

Stringhe che possono essere annotate con un set di attributi.

CommitEditing()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
CommitEditing(NSObject, Selector, IntPtr)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
ConformsToProtocol(IntPtr)

Richiamato per determinare se questo oggetto implementa il protocollo specificato.

(Ereditato da NSObject)
ContainsAttachmentsInRange(NSRange)

Stringhe che possono essere annotate con un set di attributi.

Copy()

Esegue una copia dell'oggetto Objective-C sottostante.

(Ereditato da NSObject)
Copy(NSZone)

Esegue una copia dell'oggetto Objective-C sottostante.

CreateFrom(NSTextAttachment)

Stringhe che possono essere annotate con un set di attributi.

CreateWithDocFormat(NSData, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

CreateWithHTML(NSData, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

CreateWithRTF(NSData, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

CreateWithRTFD(NSData, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

DangerousAutorelease()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
DangerousRelease()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
DangerousRetain()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
DidChange(NSKeyValueChange, NSIndexSet, NSString)

Indica che si è verificata una modifica agli indici per una relazione to-molti.

(Ereditato da NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
DidChangeValue(String)

Indica che si è verificata una modifica nella chiave specificata.

(Ereditato da NSObject)
Dispose()

Rilascia le risorse usate dall'oggetto NSObject.

(Ereditato da NSObject)
Dispose(Boolean)

Rilascia le risorse usate dall'oggetto NSObject.

(Ereditato da NSObject)
DoesNotRecognizeSelector(Selector)

Indica che questo oggetto non riconosce il selettore specificato.

(Ereditato da NSObject)
DoubleClick(nuint)

Stringhe che possono essere annotate con un set di attributi.

DrawString(CGPoint)

Disegna la stringa nel punto specificato.

DrawString(CGRect)

Stringhe che possono essere annotate con un set di attributi.

DrawString(CGRect, NSStringDrawingOptions)

Stringhe che possono essere annotate con un set di attributi.

DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext)

Stringhe che possono essere annotate con un set di attributi.

EncodeTo(NSCoder)

Codifica lo stato dell'oggetto nel codificatore fornito

EnumerateAttribute(NSString, NSRange, NSAttributedStringEnumeration, NSAttributedStringCallback)

Applica il callback all'attributo specificato nell'intervallo specificato.

EnumerateAttributes(NSRange, NSAttributedStringEnumeration, NSAttributedRangeCallback)

Applica il callback a tutti gli attributi nell'intervallo specificato.

Equals(NSObject)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Equals(Object)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
ExposedBindings()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
FromAttachment(NSTextAttachment)

Stringhe che possono essere annotate con un set di attributi.

FromAttachment(NSTextAttachment)

Stringhe che possono essere annotate con un set di attributi.

GetAppKitAttributes(nint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetAppKitAttributes(nint, NSRange, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetAttribute(String, nint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetAttribute(String, nint, NSRange, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetAttributes(nint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetAttributes(nint, NSRange, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetBindingInfo(NSString)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetBindingOptionDescriptions(NSString)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetBindingValueClass(NSString)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetBoundingRect(CGSize, NSStringDrawingOptions, NSStringDrawingContext)

Stringhe che possono essere annotate con un set di attributi.

GetCoreTextAttributes(nint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetCoreTextAttributes(nint, NSRange, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetData(NSRange, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetData(NSRange, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetDataFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetDataFromRange(NSRange, NSDictionary, NSError)

d| Aggiunta.

GetDictionaryOfValuesFromKeys(NSString[])

Recupera i valori delle chiavi specificate.

(Ereditato da NSObject)
GetDocFormat(NSRange, NSAttributedStringDocumentAttributes)

Stringhe che possono essere annotate con un set di attributi.

GetDocFormat(NSRange, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

GetFileWrapper(NSRange, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetFileWrapper(NSRange, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetFileWrapperFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetFileWrapperFromRange(NSRange, NSDictionary, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetFontAttributes(NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetHashCode()

Genera un codice hash per l'istanza corrente.

(Ereditato da NSObject)
GetItemNumber(NSTextList, nuint)

Stringhe che possono essere annotate con un set di attributi.

GetItemProviderVisibilityForTypeIdentifier(String)

Stringhe che possono essere annotate con un set di attributi.

GetLineBreak(nuint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetLineBreakByHyphenating(nuint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetMethodForSelector(Selector)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetNativeField(String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetNativeHash()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
GetNextWord(nuint, Boolean)

Stringhe che possono essere annotate con un set di attributi.

GetObject(NSData, String, NSError)

Stringhe che possono essere annotate con un set di attributi.

GetPasteboardPropertyListForType(String)

Stringhe che possono essere annotate con un set di attributi.

GetRange(NSTextBlock, nuint)

Stringhe che possono essere annotate con un set di attributi.

GetRange(NSTextList, nuint)

Stringhe che possono essere annotate con un set di attributi.

GetRange(NSTextTable, nuint)

Stringhe che possono essere annotate con un set di attributi.

GetReadableTypesForPasteboard(NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

GetReadingOptionsForType(String, NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

GetRtf(NSRange, NSAttributedStringDocumentAttributes)

Stringhe che possono essere annotate con un set di attributi.

GetRtf(NSRange, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

GetRtfd(NSRange, NSAttributedStringDocumentAttributes)

Stringhe che possono essere annotate con un set di attributi.

GetRtfd(NSRange, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

GetRtfdFileWrapper(NSRange, NSAttributedStringDocumentAttributes)

Stringhe che possono essere annotate con un set di attributi.

GetRtfdFileWrapper(NSRange, NSDictionary)

Stringhe che possono essere annotate con un set di attributi.

GetRulerAttributes(NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetUIKitAttributes(nint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetUIKitAttributes(nint, NSRange, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetUrl(nuint, NSRange)

Stringhe che possono essere annotate con un set di attributi.

GetWritableTypesForPasteboard(NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

GetWritingOptionsForType(String, NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

Init()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
InitializeHandle(IntPtr)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
InitializeHandle(IntPtr, String)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
InitWithPasteboardPropertyList(NSObject, String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

Invoke(Action, Double)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Invoke(Action, TimeSpan)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
InvokeOnMainThread(Action)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
InvokeOnMainThread(Selector, NSObject)

Richiama in modo sincronizzato il codice specificato nel thread dell'interfaccia utente principale.

(Ereditato da NSObject)
IsEqual(NSAttributedString)

Indica se è uguale all'altra stringa.

IsEqual(NSObject)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
IsKindOfClass(Class)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
IsMemberOfClass(Class)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
LoadData(String, Action<NSData,NSError>)

Implementare questo metodo per personalizzare il caricamento dei dati da un oggetto NSItemProvider.

LoadDataAsync(String)

Stringhe che possono essere annotate con un set di attributi.

LoadDataAsync(String, NSProgress)

Stringhe che possono essere annotate con un set di attributi.

LowLevelGetAttributes(nint, NSRange)

Versione di basso livello che fornisce un NSDictionary per gli attributi nell'intervallo specificato.

MarkDirty()

Promuove un oggetto peer regolare (IsDirectBinding è true) in un oggetto toggleref.

(Ereditato da NSObject)
MutableCopy()

Crea una copia modificabile dell'oggetto NSObject specificato.

(Ereditato da NSObject)
MutableCopy(NSZone)

Esegue una copia dell'oggetto Objective-C sottostante.

ObjectDidEndEditing(NSObject)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr)

Indica che il valore in corrispondenza del keyPath specificato rispetto a questo oggetto è stato modificato.

(Ereditato da NSObject)
PerformSelector(Selector)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PerformSelector(Selector, NSObject)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PerformSelector(Selector, NSObject, Double)

Richiama il selettore nell'istanza corrente e, se l'oggetto obj non è Null, lo passa come parametro singolo.

(Ereditato da NSObject)
PerformSelector(Selector, NSObject, Double, NSString[])

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PerformSelector(Selector, NSObject, NSObject)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
PrepareForInterfaceBuilder()

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
RemoveObserver(NSObject, NSString)

Impedisce all'osservatore specificato di ricevere ulteriori notifiche di valori modificati per keyPath specificato.

(Ereditato da NSObject)
RemoveObserver(NSObject, NSString, IntPtr)

Impedisce all'osservatore specificato di ricevere ulteriori notifiche di valori modificati per il keyPath e il contesto specificati.

(Ereditato da NSObject)
RemoveObserver(NSObject, String)

Impedisce all'osservatore specificato di ricevere ulteriori notifiche di valori modificati per keyPath specificato.

(Ereditato da NSObject)
RemoveObserver(NSObject, String, IntPtr)

Impedisce all'osservatore specificato di ricevere ulteriori notifiche di valori modificati per il keyPath e il contesto specificati.

(Ereditato da NSObject)
RespondsToSelector(Selector)

Se questo oggetto riconosce il selettore specificato.

(Ereditato da NSObject)
SetNativeField(String, NSObject)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
SetNilValueForKey(NSString)

Imposta il valore della chiave specificata su Null.

(Ereditato da NSObject)
SetValueForKey(NSObject, NSString)

Imposta il valore della proprietà specificata dalla chiave sul valore specificato.

(Ereditato da NSObject)
SetValueForKeyPath(IntPtr, NSString)

Costruttore usato durante la creazione di rappresentazioni gestite di oggetti non gestiti; Chiamato dal runtime.

(Ereditato da NSObject)
SetValueForKeyPath(NSObject, NSString)

Imposta il valore di una proprietà che può essere raggiunta usando un keypath.

(Ereditato da NSObject)
SetValueForUndefinedKey(NSObject, NSString)

Indica un tentativo di scrittura di un valore in una chiave non definita. Se non sottoposto a override, genera un'eccezione NSUndefinedKeyException.

(Ereditato da NSObject)
SetValuesForKeysWithDictionary(NSDictionary)

Imposta i valori di questo oggetto NSObject su quelli nel dizionario specificato.

(Ereditato da NSObject)
Substring(nint, nint)

Stringhe che possono essere annotate con un set di attributi.

ToString()

Restituisce una rappresentazione stringa del valore dell'istanza corrente.

(Ereditato da NSObject)
Unbind(NSString)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
Unbind(String)
Obsoleti.

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
ValueForKey(NSString)

Restituisce il valore della proprietà associata alla chiave specificata.

(Ereditato da NSObject)
ValueForKeyPath(NSString)

Restituisce il valore di una proprietà che può essere raggiunta usando un keypath.

(Ereditato da NSObject)
ValueForUndefinedKey(NSString)

Indica un tentativo di lettura di un valore di una chiave non definita. Se non sottoposto a override, genera un'eccezione NSUndefinedKeyException.

(Ereditato da NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString)

Indica che i valori degli indici specificati nella chiave specificata stanno per modificare.

(Ereditato da NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet)

Stringhe che possono essere annotate con un set di attributi.

(Ereditato da NSObject)
WillChangeValue(String)

Indica che il valore della chiave specificata sta per modificare.

(Ereditato da NSObject)

Metodi di estensione

BoundingRectWithSize(NSAttributedString, CGSize, NSStringDrawingOptions, NSStringDrawingContext)

Stringhe che possono essere annotate con un set di attributi.

DrawWithRect(NSAttributedString, CGRect, NSStringDrawingOptions, NSStringDrawingContext)

Stringhe che possono essere annotate con un set di attributi.

ObjectDidBeginEditing(NSObject, INSEditor)

Stringhe che possono essere annotate con un set di attributi.

ObjectDidEndEditing(NSObject, INSEditor)

Stringhe che possono essere annotate con un set di attributi.

GetValidModes(NSObject, NSFontPanel)

Stringhe che possono essere annotate con un set di attributi.

ValidateToolbarItem(NSObject, NSToolbarItem)

Stringhe che possono essere annotate con un set di attributi.

GetPasteboardPropertyListForType(INSPasteboardWriting, String)

Stringhe che possono essere annotate con un set di attributi.

GetWritableTypesForPasteboard(INSPasteboardWriting, NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

GetWritingOptionsForType(INSPasteboardWriting, String, NSPasteboard)

Stringhe che possono essere annotate con un set di attributi.

DrawAtPoint(NSAttributedString, CGPoint)

Stringhe che possono essere annotate con un set di attributi.

DrawInRect(NSAttributedString, CGRect)

Stringhe che possono essere annotate con un set di attributi.

GetSize(NSAttributedString)

Stringhe che possono essere annotate con un set di attributi.

GetDebugDescription(INSObjectProtocol)

Stringhe che possono essere annotate con un set di attributi.

AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)

Stringhe che possono essere annotate con un set di attributi.

BeginPreviewPanelControl(NSObject, QLPreviewPanel)

Stringhe che possono essere annotate con un set di attributi.

EndPreviewPanelControl(NSObject, QLPreviewPanel)

Stringhe che possono essere annotate con un set di attributi.

ContainsAttachments(NSAttributedString, NSRange)

Restituisce true se l'oggetto corrente NSAttributedString contiene allegati nell'oggetto specificato range.

GetAccessibilityCustomRotors(NSObject)

Ottiene la matrice di UIAccessibilityCustomRotor oggetti appropriati per this l'oggetto.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Imposta la matrice di UIAccessibilityCustomRotor oggetti appropriati per this l'oggetto.

Si applica a

Vedi anche