次の方法で共有


NSMutableAttributedString.LowLevelSetAttributes(IntPtr, NSRange) メソッド

定義

高スループット属性設定用の SetAttributes の低レベル バージョン。

[Foundation.Export("setAttributes:range:")]
public virtual void LowLevelSetAttributes (IntPtr dictionaryAttrsHandle, Foundation.NSRange range);
abstract member LowLevelSetAttributes : nativeint * Foundation.NSRange -> unit
override this.LowLevelSetAttributes : nativeint * Foundation.NSRange -> unit

パラメーター

dictionaryAttrsHandle
IntPtr

nativeint

設定する属性を使用して NSDictionary を処理します。

range
NSRange

属性を適用する範囲。

属性

注釈

一般に、 メソッドを LowLevelGetAttributes(nint, NSRange) 使用する必要があります。これにより、高レベルの NSDictionary が返されます。

これは NSMutableAttributedString に対する低レベルのインターフェイスであり、一般に、動作をサブクラス化してオーバーライドする必要がある場合にのみ使用されます。 NSDictionary へのハンドルを表す、提供された IntPtr を使用する必要があります。 この API は、文字挿入ごとに何千回もこのメソッドを呼び出す可能性がある NSTextStorage によって使用されるため、低レベルの API として保持されるため、可能な限り高速に保持することが非常に重要です。

適用対象