📄 cline.vb
字号:
Public Class CLine
Private m_ID, m_Width As Integer
Private m_Color As Color
Private m_Begin, m_End As PointF
Public Property ID() As Integer
Get
Return m_ID
End Get
Set(ByVal Value As Integer)
m_ID = Value
End Set
End Property
Public Property Color() As Color
Get
Return m_Color
End Get
Set(ByVal Value As Color)
m_Color = Value
End Set
End Property
Public Property Width() As Integer
Get
Return m_Width
End Get
Set(ByVal Value As Integer)
m_Width = Value
End Set
End Property
Public Property LBegin() As PointF
Get
Return m_Begin
End Get
Set(ByVal Value As PointF)
m_Begin = Value
End Set
End Property
Public Property LEnd() As PointF
Get
Return m_End
End Get
Set(ByVal Value As PointF)
m_End = Value
End Set
End Property
Public Sub New()
End Sub
Public Sub New(ByVal aID As Integer, ByVal aColor As Color, _
ByVal aWidth As Integer, ByVal p1 As PointF, ByVal p2 As PointF)
m_ID = aID
m_Color = aColor
m_Width = aWidth
m_Begin = p1
m_End = p2
End Sub
Public Sub Draw(ByVal g As Graphics)
g.DrawLine(New Pen(m_Color, m_Width), m_Begin, m_End)
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -