File: Text\AttributedText.cs
Web Access
Project: src\src\Graphics\src\Graphics\Graphics.csproj (Microsoft.Maui.Graphics)
using System.Collections.Generic;
 
namespace Microsoft.Maui.Graphics.Text
{
	public class AttributedText : AbstractAttributedText
	{
		public AttributedText(
			string text,
			IReadOnlyList<IAttributedTextRun> runs,
			bool optimal = false)
		{
			Text = text;
			Runs = runs;
			Optimal = optimal;
		}
 
		public override string Text { get; }
 
		public override IReadOnlyList<IAttributedTextRun> Runs { get; }
	}
}