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 attributes to the specified range of characters in the string. |
| AddAttributes(NSDictionary, NSRange) | |
| AddAttributes(UIStringAttributes, NSRange) |
Adds attributes to the specified range of characters in the string. |
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 attributes 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
The range to which the attributes 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)
Adds attributes to the specified range of characters in the string.
public void AddAttributes(UIKit.UIStringAttributes attrs, Foundation.NSRange range);
member this.AddAttributes : UIKit.UIStringAttributes * Foundation.NSRange -> unit
Parameters
- attrs
- UIStringAttributes
The UIKit attributes to add.
- range
- NSRange
The range to which the attributes will be applied.