ProgressBarRenderer.DrawVerticalBar メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)




カスタム コントロールの OnPaint メソッドで DrawVerticalBar メソッドを使用して、空のプログレス バーを描画するコード例を次に示します。このコード例は、ProgressBarRenderer クラスのトピックで取り上げているコード例の一部分です。
' Draw the progress bar in its normal state. Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) MyBase.OnPaint(e) If ProgressBarRenderer.IsSupported Then ProgressBarRenderer.DrawVerticalBar(e.Graphics, ClientRectangle) Me.Parent.Text = "VerticalProgressBar Enabled" Else Me.Parent.Text = "VerticalProgressBar Disabled" End If End Sub 'OnPaint
// Draw the progress bar in its normal state. protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (ProgressBarRenderer.IsSupported) { ProgressBarRenderer.DrawVerticalBar(e.Graphics, ClientRectangle); this.Parent.Text = "VerticalProgressBar Enabled"; } else { this.Parent.Text = "VerticalProgressBar Disabled"; } }
// Draw the progress bar in its normal state. protected: virtual void OnPaint(PaintEventArgs^ e) override { __super::OnPaint(e); if (ProgressBarRenderer::IsSupported) { ProgressBarRenderer::DrawVerticalBar(e->Graphics, ClientRectangle); this->Parent->Text = "VerticalProgressBar Enabled"; } else { this->Parent->Text = "VerticalProgressBar Disabled"; } }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からProgressBarRenderer.DrawVerticalBar メソッドを検索する場合は、下記のリンクをクリックしてください。

- ProgressBarRenderer.DrawVerticalBar メソッドのページへのリンク