ProgressBarRenderer.IsSupported プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

ユーザーがオペレーティング システムで visual スタイルを有効にしており、アプリケーション ウィンドウのクライアント領域に visual スタイルが適用されている場合は true。それ以外の場合は false。


IsSupported プロパティを使用して、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.IsSupported プロパティを検索する場合は、下記のリンクをクリックしてください。

- ProgressBarRenderer.IsSupported プロパティのページへのリンク