共用方式為


VisualElement.SetStyle Method

Definition

Overloads

SetStyle(BindableObject, String)

Sets the style on a visual element.

SetStyle(IPlatformElementConfiguration<Tizen,VisualElement>, String)

Sets the style on a visual element.

SetStyle(BindableObject, String)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets the style on a visual element.

public:
 static void SetStyle(Microsoft::Maui::Controls::BindableObject ^ element, System::String ^ value);
public static void SetStyle (Microsoft.Maui.Controls.BindableObject element, string value);
static member SetStyle : Microsoft.Maui.Controls.BindableObject * string -> unit
Public Sub SetStyle (element As BindableObject, value As String)

Parameters

element
BindableObject

The visual element whose style to set.

value
String

The new style value.

Applies to

SetStyle(IPlatformElementConfiguration<Tizen,VisualElement>, String)

Source:
VisualElement.cs
Source:
VisualElement.cs

Sets the style on a visual element.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Tizen ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetStyle(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Tizen ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, System::String ^ value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen,Microsoft.Maui.Controls.VisualElement> SetStyle (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen,Microsoft.Maui.Controls.VisualElement> config, string value);
static member SetStyle : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen, Microsoft.Maui.Controls.VisualElement> * string -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetStyle (config As IPlatformElementConfiguration(Of Tizen, VisualElement), value As String) As IPlatformElementConfiguration(Of Tizen, VisualElement)

Parameters

config
IPlatformElementConfiguration<Tizen,VisualElement>

The platform configuration for the visual element whose style to set.

value
String

The new style value.

Returns

A fluent object on which the developer may make further method calls.

Applies to