1

I want to get the word position, so that I can position my dialogs relative to the word on the screen in the event handler in the ribbon control

private void button1_Click(object sender, RibbonControlEventArgs e)

How to get that? I mean there is no location or Point property which tells the screen coordinates.

4

1 に答える 1

0

私はこの同じ問題に遭遇しました。理由はわかりませんが、RibbonControl クラスは Location プロパティを提供しませんでした。

座標が COM オブジェクト内のどこかに格納されている可能性はありますが、私は Excel の専門家ではありません。

他の誰かがこれに出くわしますか?

于 2009-04-21T20:16:01.737 に答える