私は ac# クラスを vb net に変換しましたが、これらがデリゲート宣言であることを確認できないイベントがいくつかあります。
Public Delegate Sub IndentChangedEventHandler(NewValue As Integer)
Public Delegate Sub MultiIndentChangedEventHandler(LeftIndent As Integer, HangIndent As Integer)
Public Delegate Sub MarginChangedEventHandler(NewValue As Integer)
Public Delegate Sub TabChangedEventHandler(args As TabEventArgs)
Public Event LeftHangingIndentChanging As IndentChangedEventHandler
Public Event LeftIndentChanging As IndentChangedEventHandler
Public Event RightIndentChanging As IndentChangedEventHandler
Public Event BothLeftIndentsChanged As MultiIndentChangedEventHandler
Public Event LeftMarginChanging As MarginChangedEventHandler
Public Event RightMarginChanging As MarginChangedEventHandler
Public Event TabAdded As TabChangedEventHandler
Public Event TabRemoved As TabChangedEventHandler
Public Event TabChanged As TabChangedEventHandler
'これは vb net で変換された関数です
Private Sub AddTab(pos As Single)
Dim rect As New RectangleF(pos, 10.0F, 8.0F, 8.0F)
tabs.Add(rect)
If TabAdded IsNot Nothing Then
TabAdded.Invoke(CreateTabArgs(pos))
End If
End Sub
C#の文は
if (TabAdded != null)
TabAdded.Invoke(CreateTabArgs(pos));
デリゲートを呼び出す正しい方法は何ですか?