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

Dim instance As Control Dim value As String value = instance.AccessibleName instance.AccessibleName = value
[LocalizableAttribute(true)] public: property String^ AccessibleName { String^ get (); void set (String^ value); }
/** @property */ public String get_AccessibleName () /** @property */ public void set_AccessibleName (String value)
ユーザー補助クライアント アプリケーションによって使用されるコントロールの名前。既定値は null 参照 (Visual Basic では Nothing) です。

AccessibleName プロパティは、Button のテキスト、MenuItem の名前、TextBox コントロールの横に表示されるラベルなど、コンテナ内のオブジェクトを簡潔に説明し、識別するラベルです。
ユーザー補助オブジェクトのプロパティの詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) の「Content of Descriptive Properties」を参照してください。

CheckBox 派生クラス MyCheckBox のインスタンスを作成し、その Image プロパティに Image を割り当て、Text プロパティが null 参照 (Visual Basic では Nothing) であるため AccessibleName プロパティと AccessibleDescription プロパティを設定するコード例を次に示します。この例では、MyForm という名前の Form が存在している必要があります。
Public Sub New() ' Create a 'MyCheckBox' control and ' display an image on it. Dim myCheckBox As New MyCustomControls.MyCheckBox() myCheckBox.Location = New Point(5, 5) myCheckBox.Image = Image.FromFile( _ Application.CommonAppDataPath + "\Preview.jpg") ' Set the AccessibleName property ' since there is no Text displayed. myCheckBox.AccessibleName = "Preview" ' Set the AccessibleDescription text. myCheckBox.AccessibleDescription = _ "A toggle button used to show the document preview." Me.Controls.Add(myCheckBox) End Sub
public MyForm() { // Create a 'MyCheckBox' control and // display an image on it. MyCustomControls.MyCheckBox myCheckBox = new MyCustomControls.MyCheckBox(); myCheckBox.Location = new Point(5,5); myCheckBox.Image = Image.FromFile( Application.CommonAppDataPath + "\\Preview.jpg"); // Set the AccessibleName property // since there is no Text displayed. myCheckBox.AccessibleName = "Preview"; myCheckBox.AccessibleDescription = "A toggle button used to show the document preview."; this.Controls.Add(myCheckBox); }
public: MyForm() { // Create a 'MyCheckBox' control and // display an image on it. MyCustomControls::MyCheckBox^ myCheckBox = gcnew MyCustomControls::MyCheckBox; myCheckBox->Location = Point(5,5); myCheckBox->Image = Image::FromFile( String::Concat( Application::CommonAppDataPath, "\\Preview.jpg" ) ); // Set the AccessibleName property // since there is no Text displayed. myCheckBox->AccessibleName = "Preview"; myCheckBox->AccessibleDescription = "A toggle button used to show the document preview."; this->Controls->Add( myCheckBox ); }
public MyForm() { // Create a 'MyCheckBox' control and // display an image on it. MyCustomControls.MyCheckBox myCheckBox = new MyCustomControls.MyCheckBox(); myCheckBox.set_Location(new Point(5, 5)); myCheckBox.set_Image(Image.FromFile(Application.get_CommonAppDataPath() + "\\Preview.jpg")); // Set the AccessibleName property // since there is no Text displayed. myCheckBox.set_AccessibleName("Preview"); myCheckBox.set_AccessibleDescription( "A toggle button used to show the document preview."); this.get_Controls().Add(myCheckBox); } //MyForm

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に収録されているすべての辞書からControl.AccessibleName プロパティを検索する場合は、下記のリンクをクリックしてください。

- Control.AccessibleName プロパティのページへのリンク