帮帮忙,把下面代转为C#代码,谢谢!!
Mystr = "sdgasg5545"
TargetStr = ""
For Item = 1 To Len(Mystr)
If cell.Characters(Item, 1).Font.Size > 5 Then
TargetStr = TargetStr & Mid(Mystr, Item, 1)
End If
Next
string Mystr = "sdgasg5545" ; string TargetStr = "" ; For (Item = 1 ;Item< Len(Mystr);Item++ ) { If (cell.Characters(Item, 1).Font.Size > 5 ) { TargetStr += Mid(Mystr, Item, 1) ; } }