共用方式為


SettersExtensions.Add(IList<Setter>, BindableProperty, Object) Method

Definition

Add a Setter with a value to the IList<Setter>

public:
[System::Runtime::CompilerServices::Extension]
 static void Add(System::Collections::Generic::IList<Microsoft::Maui::Controls::Setter ^> ^ setters, Microsoft::Maui::Controls::BindableProperty ^ property, System::Object ^ value);
public static void Add (this System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> setters, Microsoft.Maui.Controls.BindableProperty property, object value);
static member Add : System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> * Microsoft.Maui.Controls.BindableProperty * obj -> unit
<Extension()>
Public Sub Add (setters As IList(Of Setter), property As BindableProperty, value As Object)

Parameters

setters
IList<Setter>

The list of setters to which to add a setter that sets property to value.

property
BindableProperty

The property to set.

value
Object

The value to which to set the property set.

Applies to