如何获取接口对象类型?
Dim Rng as Word.Range
For Each P In GetType(Word.Range).GetProperties(........)
If P.PropertyType.IsInterface = False And P.PropertyType.IsClass = False Then
Try
Catch ex As Exception
End Try
Else
End If
Next
有如上代码,其中Word.Range为一接口,而Rng为此接口的一个实例。
有什么方法可以通过Rng返回Word.Range呢?