本文整理汇总了VB.NET中System.Drawing.Drawing2D.AdjustableArrowCap.AdjustableArrowCap构造函数的典型用法代码示例。如果您正苦于以下问题:VB.NET AdjustableArrowCap构造函数的具体用法?VB.NET AdjustableArrowCap怎么用?VB.NET AdjustableArrowCap使用的例子?那么, 这里精选的构造函数代码示例或许可以为您提供帮助。
在下文中一共展示了AdjustableArrowCap构造函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: AdjustableArrowCap
Public Sub ConstructAdjArrowCap1(ByVal e As PaintEventArgs)
Dim myArrow As New AdjustableArrowCap(6, 6)
Dim customArrow As CustomLineCap = myArrow
Dim capPen As New Pen(Color.Black)
capPen.CustomStartCap = myArrow
capPen.CustomEndCap = myArrow
e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub
示例2: AdjustableArrowCap
Public Sub ConstructAdjArrowCap2(ByVal e As PaintEventArgs)
Dim myArrow As New AdjustableArrowCap(6, 6, False)
Dim customArrow As CustomLineCap = myArrow
Dim capPen As New Pen(Color.Black)
capPen.CustomStartCap = myArrow
capPen.CustomEndCap = myArrow
e.Graphics.DrawLine(capPen, 50, 50, 200, 50)
End Sub