RibbonControlLength 构造函数 (Double, RibbonControlLengthUnitType)

用指定的值和长度单元初始化 RibbonControlLength 结构的新实例。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
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
)

参数

异常

异常 条件
ArgumentException

value 为 Double.NaN

- 或 -

type 是 Star 并且 value 是 NegativeInfinityPositiveInfinity

- 或 -

type 不是 AutoPixelStar,或 Item

.NET Framework 安全性

请参见

参考

RibbonControlLength 结构

RibbonControlLength 重载

Microsoft.Windows.Controls.Ribbon 命名空间