当前位置: 首页>>代码示例>>VB.NET>>正文


VB.NET TextRenderer.DrawText方法代码示例

本文整理汇总了VB.NET中System.Windows.Forms.TextRenderer.DrawText方法的典型用法代码示例。如果您正苦于以下问题:VB.NET TextRenderer.DrawText方法的具体用法?VB.NET TextRenderer.DrawText怎么用?VB.NET TextRenderer.DrawText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.TextRenderer的用法示例。


在下文中一共展示了TextRenderer.DrawText方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。

示例1: Point

Private Sub RenderText1(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "Regular Text", _
        Me.Font, New Point(10, 10), SystemColors.ControlText)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:5,代码来源:TextRenderer.DrawText

示例2: Rectangle

Private Sub RenderText2(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "Regular Text", _
        Me.Font, New Rectangle(10, 10, 100, 100), _
        SystemColors.ControlText)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:6,代码来源:TextRenderer.DrawText

示例3: Point

Private Sub RenderText3(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "Regular Text", Me.Font, _
        New Point(10, 10), Color.Red, Color.PowderBlue)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:5,代码来源:TextRenderer.DrawText

示例4: Point

Private Sub RenderText5(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "Some text.", _
    Me.Font, New Point(10, 10), SystemColors.ControlText, _
    TextFormatFlags.Bottom)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:6,代码来源:TextRenderer.DrawText

示例5: Rectangle

Private Sub RenderText4(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "Regular Text.", _
        Me.Font, New Rectangle(10, 10, 70, 70), _
        SystemColors.ControlText, SystemColors.ControlDark)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:6,代码来源:TextRenderer.DrawText

示例6: Rectangle

Private Sub RenderText6(ByVal e As PaintEventArgs)
    Dim flags As TextFormatFlags = TextFormatFlags.Bottom Or _
        TextFormatFlags.EndEllipsis
    TextRenderer.DrawText(e.Graphics, _
    "This is some text that will be clipped at the end.", _
    Me.Font, New Rectangle(10, 10, 100, 50), SystemColors.ControlText, flags)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:8,代码来源:TextRenderer.DrawText

示例7: Point

Private Sub RenderText7(ByVal e As PaintEventArgs)
    TextRenderer.DrawText(e.Graphics, "This is some text.", _
        Me.Font, New Point(10, 10), Color.White, Color.SteelBlue, _
        TextFormatFlags.Default)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:6,代码来源:TextRenderer.DrawText

示例8: Rectangle

Private Sub RenderText8(ByVal e As PaintEventArgs)
    Dim flags As TextFormatFlags = _
        TextFormatFlags.Bottom Or TextFormatFlags.WordBreak
    TextRenderer.DrawText(e.Graphics, _
        "This is some text that will display on multiple lines.", _
        Me.Font, New Rectangle(10, 10, 100, 50), _
        SystemColors.ControlText, SystemColors.ControlDark, flags)

End Sub
开发者ID:VB.NET开发者,项目名称:System.Windows.Forms,代码行数:9,代码来源:TextRenderer.DrawText


注:本文中的System.Windows.Forms.TextRenderer.DrawText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。