如果您正苦于以下问题:C# Point.Offset方法的具体用法?C# Point.Offset怎么用?C# Point.Offset使用的例子?那么, 这里精选的代码示例或许能为您提供帮助。
以下是System.Windows.Point
类Point.Offset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为感觉有用的代码点赞,您的评价将有助于系统推荐出更好的C#代码示例。
示例1: offsetExample
private Point offsetExample()
{
Point pointResult = new Point(10, 5);
// Offset Point X value by 20 and Y value by 30.
// point1 is now equal to (30,35)
pointResult.Offset(20, 30);
return pointResult;
}