AttributedText 构造函数

定义

public AttributedText (string text, System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Graphics.Text.IAttributedTextRun> runs, bool optimal = false);
new Microsoft.Maui.Graphics.Text.AttributedText : string * System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Graphics.Text.IAttributedTextRun> * bool -> Microsoft.Maui.Graphics.Text.AttributedText
Public Sub New (text As String, runs As IReadOnlyList(Of IAttributedTextRun), Optional optimal As Boolean = false)

参数

text
String
optimal
Boolean

适用于