c 语言转换为vb.net
哪位大侠能帮我把下面代码 改成 VB.NET 吗
private void treeListDsh_CustomDrawNodeIndicator(object sender, DevExpress.XtraTreeList.CustomDrawNodeIndicatorEventArgs e)
{
DevExpress.XtraTreeList.TreeList tmpTree = sender as DevExpress.XtraTreeList.TreeList;
DevExpress.Utils.Drawing.IndicatorObjectInfoArgs args = e.ObjectArgs as DevExpress.Utils.Drawing.IndicatorObjectInfoArgs;
if (args != null)
{
int rowNum = tmpTree.GetVisibleIndexByNode(e.Node) + 1;
args.DisplayText = rowNum.ToString();
}
e.ImageIndex = -1;
} vb.net
[解决办法]
移步》http://www.developerfusion.com/tools/convert/csharp-to-vb/
[解决办法]
Private Sub treeListDsh_CustomDrawNodeIndicator(sender As Object, e As DevExpress.XtraTreeList.CustomDrawNodeIndicatorEventArgs)
Dim tmpTree As DevExpress.XtraTreeList.TreeList = TryCast(sender, DevExpress.XtraTreeList.TreeList)
Dim args As DevExpress.Utils.Drawing.IndicatorObjectInfoArgs = TryCast(e.ObjectArgs, DevExpress.Utils.Drawing.IndicatorObjectInfoArgs)
If args IsNot Nothing Then
Dim rowNum As Integer = tmpTree.GetVisibleIndexByNode(e.Node) + 1
args.DisplayText = rowNum
End If
e.ImageIndex = -1
End Sub