NSMutableAttributedString.AddAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddAttributes(NSStringAttributes, NSRange) | |
| AddAttributes(CTStringAttributes, NSRange) |
Adds an attribute and its value to the specified range of characters in the string. |
| AddAttributes(NSDictionary, NSRange) | |
| AddAttributes(UIStringAttributes, NSRange) |
AddAttributes(NSStringAttributes, NSRange)
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public void AddAttributes(AppKit.NSStringAttributes attributes, Foundation.NSRange range);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.AddAttributes : AppKit.NSStringAttributes * Foundation.NSRange -> unit
Parameters
- attributes
- NSStringAttributes
- range
- NSRange
- Attributes
Applies to
AddAttributes(CTStringAttributes, NSRange)
Adds an attribute and its value to the specified range of characters in the string.
public void AddAttributes(CoreText.CTStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : CoreText.CTStringAttributes * Foundation.NSRange -> unit
Parameters
- attrs
- CTStringAttributes
The CoreText attributes to add.
- range
- NSRange
Range to which the attribute will be applied.
Applies to
AddAttributes(NSDictionary, NSRange)
[Foundation.Export("addAttributes:range:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void AddAttributes(Foundation.NSDictionary attrs, Foundation.NSRange range);
[<Foundation.Export("addAttributes:range:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit
override this.AddAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit
Parameters
- attrs
- NSDictionary
- range
- NSRange
- Attributes
Applies to
AddAttributes(UIStringAttributes, NSRange)
public void AddAttributes(UIKit.UIStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : UIKit.UIStringAttributes * Foundation.NSRange -> unit
Parameters
- attrs
- UIStringAttributes
- range
- NSRange