NSMutableAttributedString クラス

定義

[Foundation.Register("NSMutableAttributedString", true)]
public class NSMutableAttributedString : Foundation.NSAttributedString
[<Foundation.Register("NSMutableAttributedString", true)>]
type NSMutableAttributedString = class
    inherit NSAttributedString
継承
NSMutableAttributedString
派生
属性

コンストラクター

名前 説明
NSMutableAttributedString()

既定値を使用して新しい NSMutableAttributedString を作成します。

NSMutableAttributedString(NativeHandle)

アンマネージ オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。 ランタイムによって呼び出されます。

NSMutableAttributedString(NSAttributedString)
NSMutableAttributedString(NSCoder)

unarchiver オブジェクトに格納されているデータからオブジェクトを初期化するコンストラクター。

NSMutableAttributedString(NSObjectFlag)

初期化をスキップし、単にオブジェクトを割り当てるために派生クラスを呼び出すコンストラクター。

NSMutableAttributedString(String, CTStringAttributes)

C# 文字列から NSMutableAttributedString を作成し、指定した CoreText 属性を文字列全体に適用します。

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

個々の UIKit スタイル属性を持つ文字列から NSMutableAttributedString を作成します。

NSMutableAttributedString(String, UIStringAttributes)

UIKit 属性を持つ文字列から NSMutableAttributedString を作成します。

NSMutableAttributedString(String)

プロパティ

名前 説明
AccessibilityAttributedUserInputLabels (継承元 NSObject)
AccessibilityRespondsToUserInteraction (継承元 NSObject)
AccessibilityTextualContext (継承元 NSObject)
AccessibilityUserInputLabels (継承元 NSObject)
AttributedStringByInflectingString (継承元 NSAttributedString)
Class (継承元 NSObject)
ClassHandle

このクラスの Objective-C クラス ハンドル。

ContainsAttachments (継承元 NSAttributedString)
DebugDescription (継承元 NSObject)
Description (継承元 NSObject)
ExposedBindings (継承元 NSObject)
Handle

アンマネージ オブジェクト表現へのハンドル (ポインター)。

(継承元 NSObject)
IsDirectBinding

このインスタンスが直接 Objective-C バインドを使用するかどうかを示す値を取得または設定します。

(継承元 NSObject)
IsProxy (継承元 NSObject)
Length (継承元 NSAttributedString)
LowLevelValue (継承元 NSAttributedString)
MutableString
RetainCount (継承元 NSObject)
Self (継承元 NSObject)
Size (継承元 NSAttributedString)
Superclass (継承元 NSObject)
SuperHandle

この NSObjectの基底クラスのメソッドを表すために使用されるハンドル。

(継承元 NSObject)
Value

文字列としてのオブジェクトの内容。

(継承元 NSAttributedString)
WritableTypeIdentifiersForItemProvider (継承元 NSAttributedString)
Zone (継承元 NSObject)

メソッド

名前 説明
AddAttribute(NSString, NSObject, NSRange)
AddAttributes(CTStringAttributes, NSRange)

文字列内の指定した文字範囲に属性を追加します。

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

文字列内の指定した文字範囲に属性を追加します。

AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (継承元 NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (継承元 NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

任意のメソッドを使用して外部で観察されるオブジェクトを登録します。

(継承元 NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

任意のメソッドを使用して外部で観察されるオブジェクトを登録します。

(継承元 NSObject)
Append(NSAttributedString, Object[])

受信側の末尾に属性付き文字列と追加のオブジェクトを追加します。

Append(NSAttributedString)
AwakeFromNib() (継承元 NSObject)
BeginEditing()
BeginInvokeOnMainThread(Action)

メイン UI スレッドで、指定したアクションを非同期的に呼び出します。

(継承元 NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

メイン UI スレッドで指定したコードを非同期的に呼び出します。

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

基になる Objective-C オブジェクトのコピーを実行します。

(継承元 NSAttributedString)
DangerousAutorelease()

このオブジェクトの 'autorelease' セレクターを呼び出します。

(継承元 NSObject)
DangerousRelease()

このオブジェクトの 'release' セレクターを呼び出します。

(継承元 NSObject)
DangerousRetain()

このオブジェクトで 'retain' セレクターを呼び出します。

(継承元 NSObject)
DeleteRange(NSRange)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (継承元 NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (継承元 NSObject)
DidChangeValue(String) (継承元 NSObject)
Dispose()

NSObject オブジェクトによって使用されるリソースを解放します。

(継承元 NSObject)
Dispose(Boolean)

このオブジェクトで使用されるリソースを解放します。

(継承元 NSObject)
DoesNotRecognizeSelector(Selector) (継承元 NSObject)
DoubleClick(UIntPtr) (継承元 NSAttributedString)
DrawString(CGPoint)

指定した位置に文字列を描画します。

(継承元 NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext) (継承元 NSAttributedString)
DrawString(CGRect, NSStringDrawingOptions) (継承元 NSAttributedString)
DrawString(CGRect) (継承元 NSAttributedString)
EncodeTo(NSCoder)

指定されたエンコーダーを使用して、オブジェクトの状態をエンコードします。

(継承元 NSAttributedString)
EndEditing()
EnumerateAttribute(NSString, NSRange, NSAttributedStringEnumeration, NSAttributedStringCallback) (継承元 NSAttributedString)
EnumerateAttributes(NSRange, NSAttributedStringEnumeration, NSAttributedRangeCallback) (継承元 NSAttributedString)
Equals(NSObject)

指定した NSObject が現在の NSObjectと等しいかどうかを判断します。

(継承元 NSObject)
Equals(Object)

指定したオブジェクトが現在の NSObjectと等しいかどうかを判断します。

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

現在のインスタンスのハッシュ コードを生成します。

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

Objective-C init メソッドを呼び出してオブジェクトを初期化します。

(継承元 NSObject)
InitializeHandle(NativeHandle, String) (継承元 NSObject)
InitializeHandle(NativeHandle) (継承元 NSObject)
Insert(NSAttributedString, IntPtr)

属性付き文字列を現在の文字列に挿入します。

Invoke(Action, Double)

指定した遅延の後に、指定したアクションを呼び出します。

(継承元 NSObject)
Invoke(Action, TimeSpan)

指定した遅延の後に、指定したアクションを呼び出します。

(継承元 NSObject)
InvokeOnMainThread(Action)

メイン UI スレッドで、指定したアクションを同期的に呼び出します。

(継承元 NSObject)
InvokeOnMainThread(Selector, NSObject)

メイン UI スレッドで、指定したコードを同期的に呼び出します。

(継承元 NSObject)
IsEqual(NSAttributedString) (継承元 NSAttributedString)
IsEqual(NSObject) (継承元 NSObject)
IsKindOfClass(Class) (継承元 NSObject)
IsMemberOfClass(Class) (継承元 NSObject)
LoadData(String, Action<NSData,NSError>)

NSItemProviderによるデータの読み込みをカスタマイズするには、このメソッドを実装します。

(継承元 NSAttributedString)
LoadDataAsync(String, NSProgress) (継承元 NSAttributedString)
LoadDataAsync(String)

項目プロバイダーから識別された型のデータを非同期的に読み込み、データを含むタスクを返します。

(継承元 NSAttributedString)
LowLevelGetAttributes(IntPtr, IntPtr) (継承元 NSAttributedString)
LowLevelGetAttributes(IntPtr, NSRange)

指定した範囲内の属性に対して NSDictionary を提供する下位レベルのバージョン。

(継承元 NSAttributedString)
LowLevelSetAttributes(IntPtr, NSRange)
MarkDirty()

通常のピア オブジェクト (IsDirectBinding が true) を toggleref オブジェクトに昇格させます。

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

開発者は、この非推奨のメソッドを使用しないでください。 開発者は代わりに '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) (継承元 NSObject)
RemoveObserver(NSObject, NSString) (継承元 NSObject)
RemoveObserver(NSObject, String, IntPtr) (継承元 NSObject)
RemoveObserver(NSObject, String) (継承元 NSObject)
Replace(NSRange, NSAttributedString)
Replace(NSRange, String)
RespondsToSelector(Selector) (継承元 NSObject)
SetAttributes(CTStringAttributes, NSRange)

指定した範囲の属性を設定します。 その範囲内の以前の属性は、新しい値に置き換えられます。

SetAttributes(NSDictionary, NSRange)

指定した範囲の属性を設定します。 その範囲内の以前の属性は、新しい値に置き換えられます。

SetAttributes(UIStringAttributes, NSRange)

指定した範囲の属性を設定します。 その範囲内の以前の属性は、新しい値に置き換えられます。

SetNilValueForKey(NSString) (継承元 NSObject)
SetString(NSAttributedString)
SetValueForKey(NSObject, NSString) (継承元 NSObject)
SetValueForKeyPath(NativeHandle, NSString)

特定のキー パスによって識別されるプロパティの値を、指定された値に設定します。

(継承元 NSObject)
SetValueForKeyPath(NSObject, NSString) (継承元 NSObject)
SetValueForUndefinedKey(NSObject, NSString) (継承元 NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (継承元 NSObject)
Substring(IntPtr, IntPtr) (継承元 NSAttributedString)
ToString()

現在のインスタンスの値の文字列形式を返します。

(継承元 NSObject)
Unbind(NSString) (継承元 NSObject)
ValueForKey(NSString) (継承元 NSObject)
ValueForKeyPath(NSString) (継承元 NSObject)
ValueForUndefinedKey(NSString) (継承元 NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (継承元 NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (継承元 NSObject)
WillChangeValue(String) (継承元 NSObject)

拡張メソッド

名前 説明
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)

現在のNSAttributedStringに指定したrangeの添付ファイルが含まれている場合は、trueを返します。

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

多くの編集で蓄積される可能性のある不整合をクリーンアップします。

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

オブジェクトに適 UIAccessibilityCustomRotor オブジェクトの配列 this 取得します。

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)

項目プロバイダーから識別された型のデータを非同期的に読み込み、データを含むタスクを返します。

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

オブジェクトに適 UIAccessibilityCustomRotor オブジェクトの配列 this 設定します。

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)

適用対象