RelativePoint.FromPoint Method
Converts the specified Point to a RelativePoint that is relative to the top left corner.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
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
Parameters
- point
Type: System.Windows.Point
The Point structure to convert.
Return Value
Type: Microsoft.Windows.Design.Interaction.RelativePoint
A new RelativePoint.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace