Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PowerPoint スライドの Shape に挿入される C# で記述された COM コンポーネントがあります。質問: COM コンポーネントから形状の ID を知るにはどうすればよいですか?
PS: 私の英語で申し訳ありません。
コントロールを手動で配置していて、他の目的で ID が必要な場合は、図形が選択されていることを確認し、ALT + F11 を押して VBA IDE を開き、Ctrl + G を押してイミディエイト ウィンドウを開き、次のように入力します。
? ActiveWindow.Selection.ShapeRange(1).Id
シェイプの ID は次の行に出力されます