NSMutableAttributedString Classe

Définition

[Foundation.Register("NSMutableAttributedString", true)]
public class NSMutableAttributedString : Foundation.NSAttributedString
[<Foundation.Register("NSMutableAttributedString", true)>]
type NSMutableAttributedString = class
    inherit NSAttributedString
Héritage
NSMutableAttributedString
Dérivé
Attributs

Constructeurs

Nom Description
NSMutableAttributedString()

Crée un nouveau NSMutableAttributedString avec des valeurs par défaut.

NSMutableAttributedString(NativeHandle)

Constructeur utilisé lors de la création de représentations managées d’objets non managés. Appelé par le runtime.

NSMutableAttributedString(NSAttributedString)
NSMutableAttributedString(NSCoder)

Constructeur qui initialise l’objet à partir des données stockées dans l’objet unarchiver.

NSMutableAttributedString(NSObjectFlag)

Constructeur pour appeler des classes dérivées pour ignorer l’initialisation et simplement allouer l’objet.

NSMutableAttributedString(String, CTStringAttributes)

Crée un NSMutableAttributedString à partir d’une chaîne C# et applique les attributs CoreText spécifiés à la chaîne entière.

NSMutableAttributedString(String, NSDictionary)
NSMutableAttributedString(String, UIFont, UIColor, UIColor, UIColor, NSParagraphStyle, NSLigatureType, Single, NSUnderlineStyle, NSShadow, Single, NSUnderlineStyle)

Crée un NSMutableAttributedString à partir d’une chaîne avec des attributs de style UIKit individuels.

NSMutableAttributedString(String, UIStringAttributes)

Crée un NSMutableAttributedString à partir d’une chaîne avec des attributs UIKit.

NSMutableAttributedString(String)

Propriétés

Nom Description
AccessibilityAttributedUserInputLabels (Hérité de NSObject)
AccessibilityRespondsToUserInteraction (Hérité de NSObject)
AccessibilityTextualContext (Hérité de NSObject)
AccessibilityUserInputLabels (Hérité de NSObject)
AttributedStringByInflectingString (Hérité de NSAttributedString)
Class (Hérité de NSObject)
ClassHandle

Handle de classe Objective-C pour cette classe.

ContainsAttachments (Hérité de NSAttributedString)
DebugDescription (Hérité de NSObject)
Description (Hérité de NSObject)
ExposedBindings (Hérité de NSObject)
Handle

Handle (pointeur) vers la représentation d’objet non managée.

(Hérité de NSObject)
IsDirectBinding

Obtient ou définit une valeur indiquant si cette instance utilise une liaison de Objective-C directe.

(Hérité de NSObject)
IsProxy (Hérité de NSObject)
Length (Hérité de NSAttributedString)
LowLevelValue (Hérité de NSAttributedString)
MutableString
RetainCount (Hérité de NSObject)
Self (Hérité de NSObject)
Size (Hérité de NSAttributedString)
Superclass (Hérité de NSObject)
SuperHandle

Handle utilisé pour représenter les méthodes dans la classe de base pour ce NSObject.

(Hérité de NSObject)
Value

Contenu de l’objet sous forme de chaîne.

(Hérité de NSAttributedString)
WritableTypeIdentifiersForItemProvider (Hérité de NSAttributedString)
Zone (Hérité de NSObject)

Méthodes

Nom Description
AddAttribute(NSString, NSObject, NSRange)
AddAttributes(CTStringAttributes, NSRange)

Ajoute des attributs à la plage de caractères spécifiée dans la chaîne.

AddAttributes(NSDictionary, NSRange)
AddAttributes(NSStringAttributes, NSRange)
AddAttributes(UIStringAttributes, NSRange)

Ajoute des attributs à la plage de caractères spécifiée dans la chaîne.

AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (Hérité de NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (Hérité de NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Inscrit un objet pour être observé en externe à l’aide d’une méthode arbitraire.

(Hérité de NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Inscrit un objet pour être observé en externe à l’aide d’une méthode arbitraire.

(Hérité de NSObject)
Append(NSAttributedString, Object[])

Ajoute une chaîne attributée et des objets supplémentaires à la fin du récepteur.

Append(NSAttributedString)
AwakeFromNib() (Hérité de NSObject)
BeginEditing()
BeginInvokeOnMainThread(Action)

Appelle l’action spécifiée de manière asynchrone sur le thread d’interface utilisateur principal.

(Hérité de NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Appelle de façon asynchrone le code spécifié sur le thread d’interface utilisateur principal.

(Hérité de NSObject)
Bind(NSString, NSObject, String, NSBindingOptions) (Hérité de NSObject)
Bind(NSString, NSObject, String, NSDictionary) (Hérité de NSObject)
BoundingRectWithSize(CGSize, NSStringDrawingOptions) (Hérité de NSAttributedString)
CommitEditing() (Hérité de NSObject)
CommitEditing(NSObject, Selector, IntPtr) (Hérité de NSObject)
ConformsToProtocol(NativeHandle) (Hérité de NSObject)
ContainsAttachmentsInRange(NSRange) (Hérité de NSAttributedString)
Copy() (Hérité de NSObject)
Copy(NSZone)

Effectue une copie de l’objet Objective-C sous-jacent.

(Hérité de NSAttributedString)
DangerousAutorelease()

Appelle le sélecteur « autorelease » sur cet objet.

(Hérité de NSObject)
DangerousRelease()

Appelle le sélecteur « release » sur cet objet.

(Hérité de NSObject)
DangerousRetain()

Appelle le sélecteur « conserver » sur cet objet.

(Hérité de NSObject)
DeleteRange(NSRange)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (Hérité de NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (Hérité de NSObject)
DidChangeValue(String) (Hérité de NSObject)
Dispose()

Libère les ressources utilisées par l’objet NSObject .

(Hérité de NSObject)
Dispose(Boolean)

Libère les ressources utilisées par cet objet.

(Hérité de NSObject)
DoesNotRecognizeSelector(Selector) (Hérité de NSObject)
DoubleClick(UIntPtr) (Hérité de NSAttributedString)
DrawString(CGPoint)

Dessine la chaîne au point spécifié.

(Hérité de NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext) (Hérité de NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions) (Hérité de NSAttributedString)
DrawString(CGRect) (Hérité de NSAttributedString)
EncodeTo(NSCoder)

Encode l’état de l’objet à l’aide de l’encodeur fourni.

(Hérité de NSAttributedString)
EndEditing()
EnumerateAttribute(NSString, NSRange, NSAttributedStringEnumeration, NSAttributedStringCallback) (Hérité de NSAttributedString)
EnumerateAttributes(NSRange, NSAttributedStringEnumeration, NSAttributedRangeCallback) (Hérité de NSAttributedString)
Equals(NSObject)

Détermine si le spécifié NSObject est égal à l’actuel NSObject.

(Hérité de NSObject)
Equals(Object)

Détermine si l’objet spécifié est égal à l’objet actuel NSObject.

(Hérité de NSObject)
GetAppKitAttributes(IntPtr, NSRange, NSRange) (Hérité de NSAttributedString)
GetAppKitAttributes(IntPtr, NSRange) (Hérité de NSAttributedString)
GetAttribute(String, IntPtr, NSRange, NSRange) (Hérité de NSAttributedString)
GetAttribute(String, IntPtr, NSRange) (Hérité de NSAttributedString)
GetAttributes(IntPtr, NSRange, NSRange) (Hérité de NSAttributedString)
GetAttributes(IntPtr, NSRange) (Hérité de NSAttributedString)
GetBindingInfo(NSString) (Hérité de NSObject)
GetBindingOptionDescriptions(NSString) (Hérité de NSObject)
GetBindingValueClass(NSString) (Hérité de NSObject)
GetBoundingRect(CGSize, NSStringDrawingOptions, NSStringDrawingContext) (Hérité de NSAttributedString)
GetCoreTextAttributes(IntPtr, NSRange, NSRange) (Hérité de NSAttributedString)
GetCoreTextAttributes(IntPtr, NSRange) (Hérité de NSAttributedString)
GetData(NSRange, NSAttributedStringDocumentAttributes, NSError) (Hérité de NSAttributedString)
GetData(NSRange, NSDictionary, NSError) (Hérité de NSAttributedString)
GetDataFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)
Obsolète.
(Hérité de NSAttributedString)
GetDataFromRange(NSRange, NSDictionary, NSError)
Obsolète.
(Hérité de NSAttributedString)
GetDictionaryOfValuesFromKeys(NSString[]) (Hérité de NSObject)
GetDocFormat(NSRange, NSAttributedStringDocumentAttributes) (Hérité de NSAttributedString)
GetDocFormat(NSRange, NSDictionary) (Hérité de NSAttributedString)
GetFileWrapper(NSRange, NSAttributedStringDocumentAttributes, NSError) (Hérité de NSAttributedString)
GetFileWrapper(NSRange, NSDictionary, NSError) (Hérité de NSAttributedString)
GetFileWrapperFromRange(NSRange, NSAttributedStringDocumentAttributes, NSError)
Obsolète.
(Hérité de NSAttributedString)
GetFileWrapperFromRange(NSRange, NSDictionary, NSError)
Obsolète.
(Hérité de NSAttributedString)
GetFontAttributes(NSRange) (Hérité de NSAttributedString)
GetHashCode()

Génère un code de hachage pour l’instance actuelle.

(Hérité de NSObject)
GetItemNumber(NSTextList, UIntPtr) (Hérité de NSAttributedString)
GetItemProviderVisibilityForTypeIdentifier(String) (Hérité de NSAttributedString)
GetLineBreak(UIntPtr, NSRange) (Hérité de NSAttributedString)
GetLineBreakByHyphenating(UIntPtr, NSRange) (Hérité de NSAttributedString)
GetMethodForSelector(Selector) (Hérité de NSObject)
GetNativeHash() (Hérité de NSObject)
GetNextWord(UIntPtr, Boolean) (Hérité de NSAttributedString)
GetPasteboardPropertyListForType(String) (Hérité de NSAttributedString)
GetRange(NSTextBlock, UIntPtr) (Hérité de NSAttributedString)
GetRange(NSTextList, UIntPtr) (Hérité de NSAttributedString)
GetRange(NSTextTable, UIntPtr) (Hérité de NSAttributedString)
GetRtf(NSRange, NSAttributedStringDocumentAttributes) (Hérité de NSAttributedString)
GetRtf(NSRange, NSDictionary) (Hérité de NSAttributedString)
GetRtfd(NSRange, NSAttributedStringDocumentAttributes) (Hérité de NSAttributedString)
GetRtfd(NSRange, NSDictionary) (Hérité de NSAttributedString)
GetRtfdFileWrapper(NSRange, NSAttributedStringDocumentAttributes) (Hérité de NSAttributedString)
GetRtfdFileWrapper(NSRange, NSDictionary) (Hérité de NSAttributedString)
GetRulerAttributes(NSRange) (Hérité de NSAttributedString)
GetUIKitAttributes(IntPtr, NSRange, NSRange) (Hérité de NSAttributedString)
GetUIKitAttributes(IntPtr, NSRange) (Hérité de NSAttributedString)
GetUrl(UIntPtr, NSRange) (Hérité de NSAttributedString)
GetWritableTypesForPasteboard(NSPasteboard) (Hérité de NSAttributedString)
GetWritingOptionsForType(String, NSPasteboard) (Hérité de NSAttributedString)
Init()

Initialise l’objet en appelant la méthode Objective-C init .

(Hérité de NSObject)
InitializeHandle(NativeHandle, String) (Hérité de NSObject)
InitializeHandle(NativeHandle) (Hérité de NSObject)
Insert(NSAttributedString, IntPtr)

Insère une chaîne attribuée dans la chaîne actuelle.

Invoke(Action, Double)

Appelle l’action spécifiée après le délai spécifié.

(Hérité de NSObject)
Invoke(Action, TimeSpan)

Appelle l’action spécifiée après le délai spécifié.

(Hérité de NSObject)
InvokeOnMainThread(Action)

Appelle l’action spécifiée de façon synchrone sur le thread d’interface utilisateur principal.

(Hérité de NSObject)
InvokeOnMainThread(Selector, NSObject)

Appelle de façon synchrone le code spécifié sur le thread d’interface utilisateur principal.

(Hérité de NSObject)
IsEqual(NSAttributedString) (Hérité de NSAttributedString)
IsEqual(NSObject) (Hérité de NSObject)
IsKindOfClass(Class) (Hérité de NSObject)
IsMemberOfClass(Class) (Hérité de NSObject)
LoadData(String, Action<NSData,NSError>)

Implémentez cette méthode pour personnaliser le chargement des données par un NSItemProvider.

(Hérité de NSAttributedString)
LoadDataAsync(String, NSProgress) (Hérité de NSAttributedString)
LoadDataAsync(String)

Charge de manière asynchrone les données du type identifié à partir d’un fournisseur d’éléments, en retournant une tâche qui contient les données.

(Hérité de NSAttributedString)
LowLevelGetAttributes(IntPtr, IntPtr) (Hérité de NSAttributedString)
LowLevelGetAttributes(IntPtr, NSRange)

Version de bas niveau qui fournit un NSDictionary pour les attributs de la plage spécifiée.

(Hérité de NSAttributedString)
LowLevelSetAttributes(IntPtr, NSRange)
MarkDirty()

Promeut un objet homologue standard (IsDirectBinding est vrai) en objet toggleref.

(Hérité de NSObject)
MutableCopy() (Hérité de NSObject)
MutableCopy(NSZone) (Hérité de NSAttributedString)
ObjectDidEndEditing(NSObject) (Hérité de NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (Hérité de NSObject)
PerformSelector(Selector, NSObject, Double, NSString[]) (Hérité de NSObject)
PerformSelector(Selector, NSObject, Double) (Hérité de NSObject)
PerformSelector(Selector, NSObject, NSObject) (Hérité de NSObject)
PerformSelector(Selector, NSObject) (Hérité de NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (Hérité de NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (Hérité de NSObject)
PerformSelector(Selector) (Hérité de NSObject)
PrefersRtfdInRange(NSRange) (Hérité de NSAttributedString)
PrepareForInterfaceBuilder() (Hérité de NSObject)
ReadFromData(NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)
ReadFromData(NSData, NSDictionary, NSDictionary, NSError)
ReadFromFile(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)

Les développeurs ne doivent pas utiliser cette méthode déconseillée. Les développeurs doivent utiliser « ReadFromUrl » à la place.

ReadFromFile(NSUrl, NSDictionary, NSDictionary, NSError)
ReadFromUrl(NSUrl, NSAttributedStringDocumentAttributes, NSDictionary<NSString,NSObject>, NSError)
ReadFromUrl(NSUrl, NSDictionary<NSString,NSObject>, NSDictionary<NSString,NSObject>, NSError)
RemoveAttribute(String, NSRange)
RemoveObserver(NSObject, NSString, IntPtr) (Hérité de NSObject)
RemoveObserver(NSObject, NSString) (Hérité de NSObject)
RemoveObserver(NSObject, String, IntPtr) (Hérité de NSObject)
RemoveObserver(NSObject, String) (Hérité de NSObject)
Replace(NSRange, NSAttributedString)
Replace(NSRange, String)
RespondsToSelector(Selector) (Hérité de NSObject)
SetAttributes(CTStringAttributes, NSRange)

Définit les attributs de la plage spécifiée. Tous les attributs précédents de cette plage sont remplacés par les nouvelles valeurs.

SetAttributes(NSDictionary, NSRange)

Définit les attributs de la plage spécifiée. Tous les attributs précédents de cette plage sont remplacés par les nouvelles valeurs.

SetAttributes(UIStringAttributes, NSRange)

Définit les attributs de la plage spécifiée. Tous les attributs précédents de cette plage sont remplacés par les nouvelles valeurs.

SetNilValueForKey(NSString) (Hérité de NSObject)
SetString(NSAttributedString)
SetValueForKey(NSObject, NSString) (Hérité de NSObject)
SetValueForKeyPath(NativeHandle, NSString)

Définit la valeur de la propriété identifiée par un chemin d’accès de clé donné à une valeur donnée.

(Hérité de NSObject)
SetValueForKeyPath(NSObject, NSString) (Hérité de NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Hérité de NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Hérité de NSObject)
Substring(IntPtr, IntPtr) (Hérité de NSAttributedString)
ToString()

Retourne une représentation sous forme de chaîne de la valeur de l’instance actuelle.

(Hérité de NSObject)
Unbind(NSString) (Hérité de NSObject)
ValueForKey(NSString) (Hérité de NSObject)
ValueForKeyPath(NSString) (Hérité de NSObject)
ValueForUndefinedKey(NSString) (Hérité de NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (Hérité de NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Hérité de NSObject)
WillChangeValue(String) (Hérité de NSObject)

Méthodes d’extension

Nom Description
AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)
AccessibilityHitTest(NSObject, CGPoint, UIEvent)
ApplyFontTraits(NSMutableAttributedString, NSFontTraitMask, NSRange)
BeginPreviewPanelControl(NSObject, QLPreviewPanel)
BoundingRectWithSize(NSAttributedString, CGSize, NSStringDrawingOptions, NSStringDrawingContext)
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
ContainsAttachments(NSAttributedString, NSRange)

Retourne true si le courant NSAttributedString contient des pièces jointes dans le fichier spécifié range.

DrawAtPoint(NSAttributedString, CGPoint)
DrawInRect(NSAttributedString, CGRect)
DrawWithRect(NSAttributedString, CGRect, NSStringDrawingOptions, NSStringDrawingContext)
EndPreviewPanelControl(NSObject, QLPreviewPanel)
FixAttachmentAttributeInRange(NSMutableAttributedString, NSRange)
FixAttributesInRange(NSMutableAttributedString, NSRange)

Nettoie les incohérences qui peuvent s’accumuler sur de nombreuses modifications.

FixFontAttributeInRange(NSMutableAttributedString, NSRange)
FixParagraphStyleAttributeInRange(NSMutableAttributedString, NSRange)
GetAccessibilityCustomRotors(NSObject)

Obtient le tableau d’objets UIAccessibilityCustomRotor approprié pour this l’objet.

GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetItemProviderVisibilityForTypeIdentifier(INSItemProviderWriting, String)
GetNonNullHandle(INativeObject, String)
GetSize(NSAttributedString)
GetValidModes(NSObject, NSFontPanel)
GetWritableTypeIdentifiersForItemProvider(INSItemProviderWriting)
GetWritingOptionsForType(INSPasteboardWriting, String, NSPasteboard)
LoadDataAsync(INSItemProviderWriting, String, NSProgress)
LoadDataAsync(INSItemProviderWriting, String)

Charge de manière asynchrone les données du type identifié à partir d’un fournisseur d’éléments, en retournant une tâche qui contient les données.

ObjectDidBeginEditing(NSObject, INSEditor)
ObjectDidEndEditing(NSObject, INSEditor)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ReadFromData(NSMutableAttributedString, NSData, NSAttributedStringDocumentAttributes, NSDictionary, NSError)
ReadFromData(NSMutableAttributedString, NSData, NSAttributedStringDocumentAttributes, NSDictionary)
ReadFromData(NSMutableAttributedString, NSData, NSDictionary, NSDictionary, NSError)
ReadFromData(NSMutableAttributedString, NSData, NSDictionary, NSDictionary)
ReadFromURL(NSMutableAttributedString, NSUrl, NSAttributedStringDocumentAttributes, NSDictionary, NSError)
ReadFromURL(NSMutableAttributedString, NSUrl, NSAttributedStringDocumentAttributes, NSDictionary)
ReadFromURL(NSMutableAttributedString, NSUrl, NSDictionary, NSDictionary, NSError)
ReadFromURL(NSMutableAttributedString, NSUrl, NSDictionary, NSDictionary)
SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Définit le tableau d’objets UIAccessibilityCustomRotor approprié pour this l’objet.

SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
SetAlignment(NSMutableAttributedString, NSTextAlignment, NSRange)
SetBaseWritingDirection(NSMutableAttributedString, NSWritingDirection, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
SubscriptRange(NSMutableAttributedString, NSRange)
SuperscriptRange(NSMutableAttributedString, NSRange)
UnscriptRange(NSMutableAttributedString, NSRange)
UpdateAttachmentsFromPath(NSMutableAttributedString, String)
ValidateToolbarItem(NSObject, NSToolbarItem)

S’applique à