このスニペットについて
ユーザーコントロールにスナップラインを追加します。
サンプル
Imports System.Windows.Forms.Design.Behavior
<System.ComponentModel.Designer(GetType(UserControlDesigner))> _
Public Class UserControl1
End Class
'ユーザーコントロールクラスの属性に
'<System.ComponentModel.Designer(GetType(UserControlDesigner))>
'を追加する必要があります。
Public Class UserControlDesigner
Inherits System.Windows.Forms.Design.ControlDesigner
Public Overrides ReadOnly Property SnapLines() As System.Collections.IList
Get
Dim lines As System.Collections.ArrayList = MyBase.SnapLines
lines.Add(New SnapLine(SnapLineType.Baseline, 14, SnapLinePriority.Medium))
Return lines
End Get
End Property
End Class
ダウンロード
最終更新:2007年07月02日 15:45