Compartir a través de


RibbonControlLength (Constructor) (Double, RibbonControlLengthUnitType)

Inicializa una nueva instancia de la estructura RibbonControlLength con el valor y la unidad de longitud especificados.

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

Sintaxis

'Declaración
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
)

Parámetros

Excepciones

Excepción Condición
ArgumentException

El valor de value es Double.NaN.

O bien

type es Star y valuees NegativeInfinity o PositiveInfinity.

O bien

type no es Auto, Pixel, Star ni Item.

Seguridad de .NET Framework

Vea también

Referencia

RibbonControlLength Estructura

RibbonControlLength (Sobrecarga)

Microsoft.Windows.Controls.Ribbon (Espacio de nombres)