NSMutableAttributedString.SetAttributes 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 |
|---|---|
| SetAttributes(UIStringAttributes, NSRange) |
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values. |
| SetAttributes(CTStringAttributes, NSRange) |
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values. |
| SetAttributes(NSDictionary, NSRange) |
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values. |
SetAttributes(UIStringAttributes, NSRange)
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values.
public void SetAttributes(UIKit.UIStringAttributes attrs, Foundation.NSRange range);
member this.SetAttributes : UIKit.UIStringAttributes * Foundation.NSRange -> unit
Parameters
- attrs
- UIStringAttributes
The UIKit attributes to set.
- range
- NSRange
The range to which the attributes will be applied.
Applies to
SetAttributes(CTStringAttributes, NSRange)
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values.
public void SetAttributes(CoreText.CTStringAttributes attrs, Foundation.NSRange range);
member this.SetAttributes : CoreText.CTStringAttributes * Foundation.NSRange -> unit
Parameters
- attrs
- CTStringAttributes
CoreText attributes to be set on the string.
- range
- NSRange
The range to which the attributes will be applied.
Applies to
SetAttributes(NSDictionary, NSRange)
Sets the attributes for the specified range. Any previous attributes in that range are replaced with the new values.
public void SetAttributes(Foundation.NSDictionary attributes, Foundation.NSRange range);
member this.SetAttributes : Foundation.NSDictionary * Foundation.NSRange -> unit
Parameters
- attributes
- NSDictionary
The attributes to set.
- range
- NSRange
The range to which the attributes will be applied.