RelativePoint.FromPoint 方法

将指定的 Point 转换为一个相对左上角的 RelativePoint

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

语法

声明
Public Shared Function FromPoint ( _
    point As Point _
) As RelativePoint
public static RelativePoint FromPoint(
    Point point
)
public:
static RelativePoint FromPoint(
    Point point
)
static member FromPoint : 
        point:Point -> RelativePoint 
public static function FromPoint(
    point : Point
) : RelativePoint

参数

返回值

类型:Microsoft.Windows.Design.Interaction.RelativePoint
一个新的 RelativePoint

.NET Framework 安全性

请参见

参考

RelativePoint 结构

Microsoft.Windows.Design.Interaction 命名空间

其他资源

WPF 设计器扩展性