Share via


RibbonControlService.GetRibbon Method

Gets the value of the Ribbon attached property for an object.

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

Syntax

'Declaration
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

Parameters

Return Value

Type: Microsoft.Windows.Controls.Ribbon.Ribbon
The object’s Ribbon property value.

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