NSMutableAttributedString.AddAttributes 方法

定义

重载

AddAttributes(NSStringAttributes, NSRange)
AddAttributes(CTStringAttributes, NSRange)

将特性及其值添加到字符串中的指定字符范围。

AddAttributes(NSDictionary, NSRange)

将字典中的指定属性添加到字符串中的指定字符范围。

AddAttributes(UIStringAttributes, NSRange)

AddAttributes(NSStringAttributes, NSRange)

public void AddAttributes (AppKit.NSStringAttributes attributes, Foundation.NSRange range);
member this.AddAttributes : AppKit.NSStringAttributes * Foundation.NSRange -> unit

参数

attributes
NSStringAttributes
range
NSRange

适用于

AddAttributes(CTStringAttributes, NSRange)

将特性及其值添加到字符串中的指定字符范围。

public void AddAttributes (CoreText.CTStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : CoreText.CTStringAttributes * Foundation.NSRange -> unit

参数

attrs
CTStringAttributes

要添加的 CoreText 属性。

range
NSRange

将应用属性的范围。

适用于

AddAttributes(NSDictionary, NSRange)

将字典中的指定属性添加到字符串中的指定字符范围。

[Foundation.Export("addAttributes:range:")]
public virtual void AddAttributes (Foundation.NSDictionary attrs, Foundation.NSRange range);
abstract member AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit
override this.AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit

参数

attrs
NSDictionary

用户定义的属性作为键/值对字典。

range
NSRange

将应用属性的范围。

属性

适用于

AddAttributes(UIStringAttributes, NSRange)

public void AddAttributes (UIKit.UIStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : UIKit.UIStringAttributes * Foundation.NSRange -> unit

参数

range
NSRange

适用于