vb System.Drawing.Font.Clone类(方法)实例源码

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

作者:VB.NET开发    项目:System.Drawin   
Public Sub Clone_Example(ByVal e As PaintEventArgs)

    ' Create a Font object.
    Dim myFont As New Font("Arial", 16)

    ' Create a copy of myFont.
    Dim cloneFont As Font = CType(myFont.Clone(), Font)

    ' Use cloneFont to draw text to the screen.
    e.Graphics.DrawString("This is a cloned font", cloneFont, _
    Brushes.Black, 0, 0)
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号