TextAttributesExtensions.GetEnumAttribute<T> Method

Definition

C#
public static T GetEnumAttribute<T> (this Microsoft.Maui.Graphics.Text.ITextAttributes attributes, Microsoft.Maui.Graphics.Text.TextAttribute type, T defaultValue) where T : struct;

Type Parameters

T

Parameters

attributes
ITextAttributes
defaultValue
T

Returns

T

Applies to

Product Versions
.NET MAUI 8, 9