Share via


RibbonControlService.SetLabel Method

Sets the value of the Label attached property for an object.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Shared Sub SetLabel ( _
    element As DependencyObject, _
    value As String _
)
public static void SetLabel(
    DependencyObject element,
    string value
)
public:
static void SetLabel(
    DependencyObject^ element, 
    String^ value
)
static member SetLabel : 
        element:DependencyObject * 
        value:string -> unit 
public static function SetLabel(
    element : DependencyObject, 
    value : String
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The specified element is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

RibbonControlService Class

Microsoft.Windows.Controls.Ribbon Namespace