是否可以将=LARGE(IF($F$6:$F$562<>$B7,0,$H$6:$M$562),1)
转换为com.google.gwt.dom.client.Event
?反之亦然?
同样的事件问题。
答案 0 :(得分:2)
是的,因为它们代表相同的浏览器类型而不是包装器(从.cast()
扩展,或者在元素2中使用JsInterop);使用Function getOrientation(ByVal Rng As Range) As String
'If only one row, it's a column orientation
If Rng.Rows.Count = 1 Then
getOrientation = "Column"
Exit Function
End If
'If only one column, it's a row orientation
If Rng.Columns.Count = 1 Then
getOrientation = "Row"
Exit Function
End If
'If the cell count matches the expected cell count, it's Both
If Rng.Count = Rng.Columns.Count * Rng.Rows.Count Then
getOrientation = "Both"
ElseIf Rng.Count = Rng.Columns.Count Then
getOrientation = "Column"
Else
getOrientation = "Row"
End If
End Function
Sub Test()
'Testing
Debug.Print getOrientation(Range("A1:B100").Columns)
Debug.Print getOrientation(Range("A1:B100").Rows)
Debug.Print getOrientation(Range("A1:B100"))
Debug.Print getOrientation(Range("A1:A100"))
Debug.Print getOrientation(Range("A1:C1"))
End Sub
或Java演员。