Stopwatch.Reset メソッドとは? わかりやすく解説

Stopwatch.Reset メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

タイマ間隔計測停止して経過時間ゼロリセットします。

名前空間: System.Diagnostics
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

Windows フォーム アプリケーションボタン クリック イベントStopwatch インスタンスリセットする例を次に示します。このコード例は、Stopwatch クラストピック取り上げているコード例一部分です。

' Reset the stopwatch and the displayed timer value.
labelTime.Text = "00:00:00.00"
buttonLapReset.Text = "Lap"
stopWatch.Reset()
labelLap.Visible = False
labelLapPrompt.Visible = False
// Reset the stopwatch and the displayed timer value.

labelLap.Visible = false;
labelLapPrompt.Visible = false;
labelTime.Text = "00:00:00.00";
buttonLapReset.Text = "Lap";
stopWatch.Reset();
// Reset the stopwatch and the displayed timer value.
labelLap->Visible = false;
labelLapPrompt->Visible = false;
labelTime->Text = "00:00:00.00";
buttonLapReset->Text = "Lap";
stopWatch->Reset();
// Reset the stopwatch and the displayed timer value.
labelLap.set_Visible(false);
labelLapPrompt.set_Visible(false);
labelTime.set_Text("00:00:00.00");
buttonLapReset.set_Text("Lap");
stopWatch.Reset();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からStopwatch.Reset メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からStopwatch.Reset メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からStopwatch.Reset メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Stopwatch.Reset メソッド」の関連用語

Stopwatch.Reset メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Stopwatch.Reset メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS