Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- value
Type: System.Double
The requested size of the element.
- type
Type: Microsoft.Windows.Controls.Ribbon.RibbonControlLengthUnitType
The type that is used to determine how the size of the element is calculated.
Exceptions
Exception | Condition |
---|---|
ArgumentException | value is Double.NaN. -or- type is Star and value is NegativeInfinity or PositiveInfinity. -or- |
.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.