Lenguaje

NSMutableAttributedString Clase

Definición

[Foundation.Register("NSMutableAttributedString", true)]
public class NSMutableAttributedString : Foundation.NSAttributedString
[<Foundation.Register("NSMutableAttributedString", true)>]
type NSMutableAttributedString = class
    inherit NSAttributedString
Herencia
NSMutableAttributedString
Derivado
Atributos

Constructores

Nombre Description
NSMutableAttributedString()

Crea un nuevo NSMutableAttributedString con valores predeterminados.

NSMutableAttributedString(NativeHandle)

Constructor usado al crear representaciones administradas de objetos no administrados. Llamado por el tiempo de ejecución.

NSMutableAttributedString(NSAttributedString)
NSMutableAttributedString(NSCoder)

Constructor que inicializa el objeto a partir de los datos almacenados en el objeto unarchiver.

NSMutableAttributedString(NSObjectFlag)

Constructor para llamar a en clases derivadas para omitir la inicialización y simplemente asignar el objeto.

NSMutableAttributedString(String, CTStringAttributes)

Crea un NSMutableAttributedString a partir de una cadena de C# y aplica los atributos CoreText especificados a toda la cadena.

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

Crea un NSMutableAttributedString a partir de una cadena con atributos de estilo UIKit individuales.

NSMutableAttributedString(String, UIStringAttributes)

Crea un NSMutableAttributedString a partir de una cadena con atributos UIKit.

NSMutableAttributedString(String)

Propiedades

Nombre Description
AccessibilityAttributedUserInputLabels (Heredado de NSObject)
AccessibilityRespondsToUserInteraction (Heredado de NSObject)
AccessibilityTextualContext (Heredado de NSObject)
AccessibilityUserInputLabels (Heredado de NSObject)
AttributedStringByInflectingString (Heredado de NSAttributedString)
Class (Heredado de NSObject)
ClassHandle

Identificador de clase Objective-C para esta clase.

ContainsAttachments (Heredado de NSAttributedString)
DebugDescription (Heredado de NSObject)
Description (Heredado de NSObject)
ExposedBindings (Heredado de NSObject)
Handle

Controla (puntero) a la representación de objeto no administrada.

(Heredado de NSObject)
IsDirectBinding

Obtiene o establece un valor que indica si esta instancia usa Objective-C enlace directo.

(Heredado de NSObject)
IsProxy (Heredado de NSObject)
Length (Heredado de NSAttributedString)
LowLevelValue (Heredado de NSAttributedString)
MutableString
RetainCount (Heredado de NSObject)
Self (Heredado de NSObject)
Size (Heredado de NSAttributedString)
Superclass (Heredado de NSObject)
SuperHandle

Identificador usado para representar los métodos de la clase base para este NSObject.

(Heredado de NSObject)
Value

Contenido del objeto como una cadena.

(Heredado de NSAttributedString)
WritableTypeIdentifiersForItemProvider (Heredado de NSAttributedString)
Zone (Heredado de NSObject)

Métodos

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

Agrega atributos al intervalo de caracteres especificado en la cadena.

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

Agrega atributos al intervalo de caracteres especificado en la cadena.

AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (Heredado de NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (Heredado de NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registra un objeto para que se observe externamente mediante un método arbitrario.

(Heredado de NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registra un objeto para que se observe externamente mediante un método arbitrario.

(Heredado de NSObject)
Append(NSAttributedString, Object[])

Anexa una cadena con atributos y objetos adicionales al final del receptor.

Append(NSAttributedString)
AwakeFromNib() (Heredado de NSObject)
BeginEditing()
BeginInvokeOnMainThread(Action)

Invoca la acción especificada de forma asincrónica en el subproceso principal de la interfaz de usuario.

(Heredado de NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invoca de forma asincrónica el código especificado en el subproceso principal de la interfaz de usuario.

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

Realiza una copia del objeto Objective-C subyacente.

(Heredado de NSAttributedString)
DangerousAutorelease()

Llama al selector "autorelease" en este objeto.

(Heredado de NSObject)
DangerousRelease()

Llama al selector "release" en este objeto.

(Heredado de NSObject)
DangerousRetain()

Llama al selector "retain" en este objeto.

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

Libera los recursos utilizados por el NSObject objeto .

(Heredado de NSObject)
Dispose(Boolean)

Libera los recursos usados por este objeto.

(Heredado de NSObject)
DoesNotRecognizeSelector(Selector) (Heredado de NSObject)
DoubleClick(UIntPtr) (Heredado de NSAttributedString)
DrawString(CGPoint)

Dibuja la cadena en el punto especificado.

(Heredado de NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext) (Heredado de NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions) (Heredado de NSAttributedString)
DrawString(CGRect) (Heredado de NSAttributedString)
EncodeTo(NSCoder)

Codifica el estado del objeto mediante el codificador proporcionado.

(Heredado de NSAttributedString)
EndEditing()
EnumerateAttribute(NSString, NSRange, NSAttributedStringEnumeration, NSAttributedStringCallback) (Heredado de NSAttributedString)
EnumerateAttributes(NSRange, NSAttributedStringEnumeration, NSAttributedRangeCallback) (Heredado de NSAttributedString)
Equals(NSObject)

Determina si el objeto especificado NSObject es igual al objeto actual NSObject.

(Heredado de NSObject)
Equals(Object)

Determina si el objeto especificado es igual al objeto actual NSObject.

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

Genera un código hash para la instancia actual.

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

Inicializa el objeto llamando al método Objective-C init .

(Heredado de NSObject)
InitializeHandle(NativeHandle, String) (Heredado de NSObject)
InitializeHandle(NativeHandle) (Heredado de NSObject)
Insert(NSAttributedString, IntPtr)

Inserta una cadena con atributos en la cadena actual.

Invoke(Action, Double)

Invoca la acción especificada después del retraso especificado.

(Heredado de NSObject)
Invoke(Action, TimeSpan)

Invoca la acción especificada después del retraso especificado.

(Heredado de NSObject)
InvokeOnMainThread(Action)

Invoca la acción especificada de forma sincrónica en el subproceso principal de la interfaz de usuario.

(Heredado de NSObject)
InvokeOnMainThread(Selector, NSObject)

Invoca sincrónicamente el código especificado en el subproceso principal de la interfaz de usuario.

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

Implemente este método para personalizar la carga de datos mediante .NSItemProvider

(Heredado de NSAttributedString)
LoadDataAsync(String, NSProgress) (Heredado de NSAttributedString)
LoadDataAsync(String)

Carga de forma asincrónica los datos del tipo identificado de un proveedor de elementos, devolviendo una tarea que contiene los datos.

(Heredado de NSAttributedString)
LowLevelGetAttributes(IntPtr, IntPtr) (Heredado de NSAttributedString)
LowLevelGetAttributes(IntPtr, NSRange)

Versión de bajo nivel que proporciona un NSDictionary para los atributos del intervalo especificado.

(Heredado de NSAttributedString)
LowLevelSetAttributes(IntPtr, NSRange)
MarkDirty()

Promueve un objeto del mismo nivel normal (IsDirectBinding es true) en un objeto toggleref.

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

Los desarrolladores no deben usar este método en desuso. En su lugar, los desarrolladores deben usar "ReadFromUrl".

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) (Heredado de NSObject)
RemoveObserver(NSObject, NSString) (Heredado de NSObject)
RemoveObserver(NSObject, String, IntPtr) (Heredado de NSObject)
RemoveObserver(NSObject, String) (Heredado de NSObject)
Replace(NSRange, NSAttributedString)
Replace(NSRange, String)
RespondsToSelector(Selector) (Heredado de NSObject)
SetAttributes(CTStringAttributes, NSRange)

Establece los atributos del intervalo especificado. Los atributos anteriores de ese intervalo se reemplazan por los nuevos valores.

SetAttributes(NSDictionary, NSRange)

Establece los atributos del intervalo especificado. Los atributos anteriores de ese intervalo se reemplazan por los nuevos valores.

SetAttributes(UIStringAttributes, NSRange)

Establece los atributos del intervalo especificado. Los atributos anteriores de ese intervalo se reemplazan por los nuevos valores.

SetNilValueForKey(NSString) (Heredado de NSObject)
SetString(NSAttributedString)
SetValueForKey(NSObject, NSString) (Heredado de NSObject)
SetValueForKeyPath(NativeHandle, NSString)

Establece el valor de la propiedad identificada por una ruta de acceso de clave determinada a un valor determinado.

(Heredado de NSObject)
SetValueForKeyPath(NSObject, NSString) (Heredado de NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Heredado de NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Heredado de NSObject)
Substring(IntPtr, IntPtr) (Heredado de NSAttributedString)
ToString()

Devuelve una representación de cadena del valor de la instancia actual.

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

Métodos de extensión

Nombre 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)

Devuelve true si el objeto actual NSAttributedString contiene datos adjuntos en el especificado range.

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

Limpia las incoherencias que pueden acumularse en muchas ediciones.

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

Obtiene la matriz de UIAccessibilityCustomRotor objetos adecuados para this el objeto .

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)

Carga de forma asincrónica los datos del tipo identificado de un proveedor de elementos, devolviendo una tarea que contiene los datos.

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[])

Establece la matriz de UIAccessibilityCustomRotor objetos adecuados para this el objeto .

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)

Se aplica a