VisualStyleInformation クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > VisualStyleInformation クラスの意味・解説 

VisualStyleInformation クラス

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

オペレーティング システム現在の visual スタイルに関する情報提供します

名前空間: System.Windows.Forms.VisualStyles
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public NotInheritable Class
 VisualStyleInformation
public static class VisualStyleInformation
public ref class VisualStyleInformation abstract
 sealed
public final class VisualStyleInformation
public final class VisualStyleInformation
解説解説
使用例使用例

次のコード例では、ListView コントロール内の VisualStyleInformation プロパティの値が表示されます。

Imports System
Imports System.Drawing
Imports System.Text
Imports System.Reflection
Imports System.Windows.Forms
Imports System.Windows.Forms.VisualStyles

Namespace VisualStyleInformationSample

    Public Class Form1
        Inherits Form
        Private listView1 As New
 ListView()

        <STAThread()> _
        Shared Sub Main()
            Application.EnableVisualStyles()
            Application.Run(New Form1())
        End Sub

        Public Sub New()
            Me.Text = "VisualStyleInformation
 Property Values"
            Me.AutoSize = True

            With listView1
                .Bounds = New Rectangle(New
 Point(10, 10), New Size(400, 300))
                .View = View.Details
                .Sorting = SortOrder.Ascending
            End With

            ' Get an array of property details for the
            ' VisualStyleInformation class.
            Dim typeInfo As Type = GetType(VisualStyleInformation)
            Dim elementProperties As PropertyInfo()
 = _
                typeInfo.GetProperties(BindingFlags.Static Or
 BindingFlags.Public)

            ' Use these variables to store the name and value of each
 property.
            Dim propertyName As New
 StringBuilder()
            Dim propertyValue As Object
            Dim prop As PropertyInfo

            For Each prop In
 elementProperties
                ' Get the name and value of the current property.
                propertyName.Append(prop.Name)
                propertyValue = prop.GetValue(Nothing, BindingFlags.Static,
 _
                    Nothing, Nothing, Nothing)
                ' Insert the property name and value into the ListView.
                Dim newItem As New
 ListViewItem(propertyName.ToString(), 0)
                newItem.SubItems.Add(propertyValue.ToString())
                listView1.Items.Add(newItem)
                ' Clear the property name for the next iteration.
                propertyName.Remove(0, propertyName.Length)
            Next prop

            ' Create columns for the items and subitems.
            listView1.Columns.Add("Property", -1,
 _
                System.Windows.Forms.HorizontalAlignment.Left)
            listView1.Columns.Add("Value", -1, _
                System.Windows.Forms.HorizontalAlignment.Left)
            Me.Controls.Add(listView1)
        End Sub
    End Class
End Namespace
継承階層継承階層
System.Object
  System.Windows.Forms.VisualStyles.VisualStyleInformation
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
VisualStyleInformation メンバ
System.Windows.Forms.VisualStyles 名前空間
VisualStyleRenderer
VisualStyleElement クラス


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

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

辞書ショートカット

すべての辞書の索引

「VisualStyleInformation クラス」の関連用語

VisualStyleInformation クラスのお隣キーワード
検索ランキング

   

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



VisualStyleInformation クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS