Share via


RibbonControlLength Constructor (Double, RibbonControlLengthUnitType)

Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

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

Syntax

'Declaration
Public Sub New ( _
    value As Double, _
    type As RibbonControlLengthUnitType _
)
public RibbonControlLength(
    double value,
    RibbonControlLengthUnitType type
)
public:
RibbonControlLength(
    double value, 
    RibbonControlLengthUnitType type
)
new : 
        value:float * 
        type:RibbonControlLengthUnitType -> RibbonControlLength
public function RibbonControlLength(
    value : double, 
    type : RibbonControlLengthUnitType
)

Parameters

Exceptions

Exception Condition
ArgumentException

value is Double.NaN.

-or-

type is Star and value is NegativeInfinity or PositiveInfinity.

-or-

type is not Auto, Pixel, Star, or Item.

.NET Framework Security

See Also

Reference

RibbonControlLength Structure

RibbonControlLength Overload

Microsoft.Windows.Controls.Ribbon Namespace