RibbonControlService.GetCornerRadius Method
Gets the value of the CornerRadius attached property for an object.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Shared Function GetCornerRadius ( _
element As DependencyObject _
) As CornerRadius
public static CornerRadius GetCornerRadius(
DependencyObject element
)
public:
static CornerRadius GetCornerRadius(
DependencyObject^ element
)
static member GetCornerRadius :
element:DependencyObject -> CornerRadius
public static function GetCornerRadius(
element : DependencyObject
) : CornerRadius
Parameters
- element
Type: System.Windows.DependencyObject
The object from which the property value is read.
Return Value
Type: System.Windows.CornerRadius
The object’s CornerRadius property value.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The specified element is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.