vb System.Drawing.PointF.Add类(方法)实例源码

下面列出了vb System.Drawing.PointF.Add 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Drawin   
Private Sub AddExample(ByVal e As PaintEventArgs) 
    Dim size1 As New SizeF(120.5F, 30.5F)
    Dim point1 As New PointF(20.5F, 20F)
    Dim rect1 As New RectangleF(point1, size1)
    Dim point2 As New PointF(rect1.Right, rect1.Bottom)
    If point2 <> PointF.Add(point1, size1) Then
        e.Graphics.DrawString("They are not equal", Me.Font, Brushes.Red, rect1)
    Else
        e.Graphics.DrawString("They are equal", Me.Font, Brushes.Black, rect1)
    End If

End Sub


问题


面经


文章

微信
公众号

扫码关注公众号