Compartir a través de


RibbonControlService.GetLabel (Método)

Obtiene el valor de la propiedad adjunta Label de un objeto.

Espacio de nombres:  Microsoft.Windows.Controls.Ribbon
Ensamblado:  RibbonControlsLibrary (en RibbonControlsLibrary.dll)

Sintaxis

'Declaración
Public Shared Function GetLabel ( _
    element As DependencyObject _
) As String
public static string GetLabel(
    DependencyObject element
)
public:
static String^ GetLabel(
    DependencyObject^ element
)
static member GetLabel : 
        element:DependencyObject -> string 
public static function GetLabel(
    element : DependencyObject
) : String

Parámetros

Valor devuelto

Tipo: System.String
Valor de la propiedad Label del objeto.

Excepciones

Excepción Condición
ArgumentNullException

El element especificado es nullreferencia null (Nothing en Visual Basic).

Seguridad de .NET Framework

Vea también

Referencia

RibbonControlService Clase

Microsoft.Windows.Controls.Ribbon (Espacio de nombres)