使用 RelativePosition 和值初始化 RelativeValue 结构的新实例。
命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Sub New ( _
    reference As RelativePosition, _
    value As Double _
)
public RelativeValue(
    RelativePosition reference,
    double value
)
public:
RelativeValue(
    RelativePosition^ reference, 
    double value
)
new : 
        reference:RelativePosition * 
        value:float -> RelativeValue
public function RelativeValue(
    reference : RelativePosition, 
    value : double
)
参数
- reference
 类型:Microsoft.Windows.Design.Interaction.RelativePosition
 该值已知的相对位置类型。
- value
 类型:System.Double
 该相对位置的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间