共用方式為


TextAttributes Class

Definition

public ref class TextAttributes : System::Collections::Generic::Dictionary<Microsoft::Maui::Graphics::Text::TextAttribute, System::String ^>, Microsoft::Maui::Graphics::Text::ITextAttributes, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::Maui::Graphics::Text::TextAttribute, System::String ^>>, System::Collections::Generic::IReadOnlyCollection<System::Collections::Generic::KeyValuePair<Microsoft::Maui::Graphics::Text::TextAttribute, System::String ^>>, System::Collections::Generic::IReadOnlyDictionary<Microsoft::Maui::Graphics::Text::TextAttribute, System::String ^>
public class TextAttributes : System.Collections.Generic.Dictionary<Microsoft.Maui.Graphics.Text.TextAttribute,string>, Microsoft.Maui.Graphics.Text.ITextAttributes, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.Maui.Graphics.Text.TextAttribute,string>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<Microsoft.Maui.Graphics.Text.TextAttribute,string>>, System.Collections.Generic.IReadOnlyDictionary<Microsoft.Maui.Graphics.Text.TextAttribute,string>
type TextAttributes = class
    inherit Dictionary<TextAttribute, string>
    interface ITextAttributes
    interface IReadOnlyDictionary<TextAttribute, string>
    interface seq<KeyValuePair<TextAttribute, string>>
    interface IEnumerable
    interface IReadOnlyCollection<KeyValuePair<TextAttribute, string>>
Public Class TextAttributes
Inherits Dictionary(Of TextAttribute, String)
Implements IEnumerable(Of KeyValuePair(Of TextAttribute, String)), IReadOnlyCollection(Of KeyValuePair(Of TextAttribute, String)), IReadOnlyDictionary(Of TextAttribute, String), ITextAttributes
Inheritance
TextAttributes
Implements

Constructors

TextAttributes()
TextAttributes(IDictionary<TextAttribute,String>)
TextAttributes(IReadOnlyDictionary<TextAttribute,String>, IReadOnlyDictionary<TextAttribute,String>)

Extension Methods

GetBackgroundColor(ITextAttributes)
GetBold(ITextAttributes)
GetFontName(ITextAttributes)
GetFontSize(ITextAttributes, Nullable<Single>)
GetForegroundColor(ITextAttributes)
GetItalic(ITextAttributes)
GetMarker(ITextAttributes)
GetStrikethrough(ITextAttributes)
GetSubscript(ITextAttributes)
GetSuperscript(ITextAttributes)
GetUnderline(ITextAttributes)
GetUnorderedList(ITextAttributes)
GetAttribute(ITextAttributes, TextAttribute, String)
GetBoolAttribute(ITextAttributes, TextAttribute, Boolean)
GetEnumAttribute<T>(ITextAttributes, TextAttribute, T)
GetFloatAttribute(ITextAttributes, TextAttribute, Single)
GetIntAttribute(ITextAttributes, TextAttribute, Int32)

Applies to