Compartir a través de


RibbonControlService.GetRibbon (Método)

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

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

Sintaxis

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

Parámetros

Valor devuelto

Tipo: Microsoft.Windows.Controls.Ribbon.Ribbon
Valor de la propiedad Ribbon 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)