TextAttributesExtensions.GetEnumAttribute<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static T GetEnumAttribute(Microsoft::Maui::Graphics::Text::ITextAttributes ^ attributes, Microsoft::Maui::Graphics::Text::TextAttribute type, T defaultValue);
public static T GetEnumAttribute<T> (this Microsoft.Maui.Graphics.Text.ITextAttributes attributes, Microsoft.Maui.Graphics.Text.TextAttribute type, T defaultValue) where T : struct;
static member GetEnumAttribute : Microsoft.Maui.Graphics.Text.ITextAttributes * Microsoft.Maui.Graphics.Text.TextAttribute * 'T -> 'T (requires 'T : struct)
<Extension()>
Public Function GetEnumAttribute(Of T As Structure) (attributes As ITextAttributes, type As TextAttribute, defaultValue As T) As T
Type Parameters
- T
Parameters
- attributes
- ITextAttributes
- type
- TextAttribute
- defaultValue
- T
Returns
T
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.