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