RelativePosition.Contains 方法

返回一个值,该值指示指定的 RelativePosition 是否位于此 RelativePosition 的内部。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Function Contains ( _
    value As RelativePosition _
) As Boolean
public bool Contains(
    RelativePosition value
)
public:
bool Contains(
    RelativePosition^ value
)
member Contains : 
        value:RelativePosition -> bool 
public function Contains(
    value : RelativePosition
) : boolean

参数

返回值

类型:System.Boolean
如果 value 包含在此 RelativePosition 中,则为 true;否则为 false。

异常

异常 条件
ArgumentNullException

value 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

RelativePosition 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

WPF 设计器扩展性