1

Interop バージョン 15.0 (runtine バージョン v2.0.50727) - Powerpoint アドインを使用して、Powerpoint 2013 にハイパーリンク付きのテキストを追加しようとしています。事前に選択したテキストにハイパーリンクを追加することに成功しました(同じコードを使用)。ただし、テキストが選択されていない場合は、ハイパーリンクなしでテキストを挿入するだけです (おそらく、選択には何もありません)。私に何ができる?何かアドバイス?

this.Application.ActiveWindow.Selection.TextRange.Text = e.GetTitle();
this.Application.ActiveWindow.Selection.TextRange.Select();
this.Application.ActiveWindow.Selection.TextRange.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Hyperlink.Address = @"http://google.com";
4

0 に答える 0