Share via


RibbonControlService.SetLabel(DependencyObject, String) Metodo

Definizione

Imposta il valore della proprietà associata Label per un oggetto.

public:
 static void SetLabel(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetLabel (System.Windows.DependencyObject element, string value);
static member SetLabel : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetLabel (element As DependencyObject, value As String)

Parametri

element
DependencyObject

Oggetto in cui viene scritta la proprietà associata.

value
String

Il valore da impostare.

Eccezioni

Il valore specificato per il parametro element è null.

Si applica a