NavigableElement.StyleClass 属性

定义

获取或设置元素的样式类。

public:
 property System::Collections::Generic::IList<System::String ^> ^ StyleClass { System::Collections::Generic::IList<System::String ^> ^ get(); void set(System::Collections::Generic::IList<System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))]
public System.Collections.Generic.IList<string> StyleClass { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))>]
member this.StyleClass : System.Collections.Generic.IList<string> with get, set
Public Property StyleClass As IList(Of String)

属性值

属性

注解

等价到 class

样式类支持将多个样式应用于控件,而无需采用样式继承。

适用于