'Declaration
Public Overloads Overridable Sub OnPaint( _
ByVal As Graphics, _
ByVal As Rectangle _
)
'使用法
Dim instance As ElementControl
Dim g As Graphics
Dim rectInput As Rectangle
instance.OnPaint(g, rectInput)
public virtual void OnPaint(
Graphics ,
Rectangle
)