ToggleButton.Click イベント (Outlook フォーム スクリプト)

複数の選択肢があるコントロールから、ユーザーが値を選択したときに発生します。

構文

式.Click

式ToggleButton オブジェクトを表す変数。

注釈

指定されたコントロールの Click イベントを開始する操作の例を次に示します。

  • フォーム上の何もない領域をクリックしたり、リスト ボックス以外の無効なコントロールをクリックしたとき。

  • マウスの左ボタンでコントロールをクリックしたとき。

  • コントロールのアクセス キーを押したとき。

For some controls, the Click event occurs when the Value property changes. However, using the PropertyChange or CustomPropertyChange event is the preferred technique for detecting a new value for a property. The following are examples of actions that initiate the Click event due to assigning a new value to a control: clicking a ToggleButton, pressing the SPACEBAR when a toggle button has the focus, pressing the accelerator key, or changing the value of the control in code.

Value に Null 値が設定されていると、 Click イベントは発生しません。

左クリックすると、コントロールの値が変更されるので、 Click イベントが開始されます。 右クリックすると、コントロールの値が変更されないので、 Click イベントは開始されません。

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。