/// <summary> /// Creates a new attributed string from the specified styled text and theme. /// </summary> /// <param name="styledText">The styled text.</param> /// <param name="theme">The theme to apply.</param> /// <returns>A new attributed string.</returns> public static NSMutableAttributedString FromStyledText(StyledText styledText, LabelTheme theme) { return(AttributedString.FromStyledText(styledText, theme, ViewFontSizes.StandardFontSize)); }
/// <summary> /// Applies a label theme to the specified attributed string for a label. /// </summary> /// <param name="attributedText">A attributed string to apply the theme to.</param> /// <param name="theme">The theme to apply.</param> /// <param name="range">Identifies the range of text that the theme will be applied to.</param> public static void ApplyTheme(NSMutableAttributedString attributedText, LabelTheme theme, NSRange range) { AttributedString.ApplyTheme(attributedText, theme, range, ViewFontSizes.StandardFontSize); }