TabControl.TabPageCollection.IsReadOnly プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TabControl.TabPageCollection.IsReadOnly プロパティの意味・解説 

TabControl.TabPageCollection.IsReadOnly プロパティ

コレクション読み取り専用かどうかを示す値を取得します

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

Dim instance As TabPageCollection
Dim value As Boolean

value = instance.IsReadOnly
public bool IsReadOnly { get;
 }
/** @property */
public final boolean get_IsReadOnly ()

プロパティ
このプロパティは常に false返します

使用例使用例

2 つの TabPage を持つ TabControl を作成するコード例次に示します。この例では、tabControl1 コントロール コレクション取得しIsReadOnly プロパティ使用して読み取り専用かどうか確認してます。

この例では、System.Drawing 名前空間System.Windows.Forms 名前空間使用します

Imports System.Drawing
Imports System.Windows.Forms

Public Class Form1
    Inherits Form

    Public Sub New()
        Dim tabControl1 As New
 TabControl()
        Dim tabPage1 As New
 TabPage()
        Dim tabPage2 As New
 TabPage()
        Dim label1 As New
 Label()

        ' Determines if the tabControl1 controls collection is read-only.
        If tabControl1.TabPages.IsReadOnly = True
 Then
            label1.Text = "The tabControl1 controls collection
 is read-only."
        Else
            label1.Text = "The tabControl1 controls collection
 is not read-only."
        End If
        tabControl1.TabPages.AddRange(New TabPage() {tabPage1,
 tabPage2})
        tabControl1.Location = New Point(25, 75)
        tabControl1.Size = New Size(250, 200)

        label1.Location = New Point(25, 25)
        label1.Size = New Size(250, 25)

        Me.ClientSize = New Size(300, 300)
        Me.Controls.AddRange(New Control()
 {tabControl1, label1})
    End Sub

    Shared Sub Main()
        Application.Run(New Form1())
    End Sub
End Class
using System.Drawing;
using System.Windows.Forms;

public class Form1 : Form
{
    public Form1()
    {
        TabControl tabControl1 = new TabControl();
        TabPage tabPage1 = new TabPage();
        TabPage tabPage2 = new TabPage();
        Label label1 = new Label();

        // Determines if the tabControl1 controls collection is read-only.
        if (tabControl1.TabPages.IsReadOnly == true)
            label1.Text = "The tabControl1 controls collection is read-only.";
        else
            label1.Text = "The tabControl1 controls collection is not read-only.";

        tabControl1.TabPages.AddRange(new TabPage[] {tabPage1,
 tabPage2});
        tabControl1.Location = new Point(25, 75);
        tabControl1.Size = new Size(250, 200);

        label1.Location = new Point(25, 25);
        label1.Size = new Size(250, 25);

        this.ClientSize = new Size(300, 300);
        this.Controls.AddRange(new Control[]
 {tabControl1, label1});
    }

    static void Main() 
    {
        Application.Run(new Form1());
    }
}
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public
 Form
{
public:
   Form1()
   {
      TabControl^ tabControl1 = gcnew TabControl;
      TabPage^ tabPage1 = gcnew TabPage;
      TabPage^ tabPage2 = gcnew TabPage;
      Label^ label1 = gcnew Label;
      
      // Determines if the tabControl1 controls collection is read-only.
      if ( tabControl1->TabPages->IsReadOnly == true
 )
            label1->Text = "The tabControl1 controls collection is read-only.";
      else
            label1->Text = "The tabControl1 controls collection is not read-only.";

      array<TabPage^>^tabPages = {tabPage1,tabPage2};
      tabControl1->TabPages->AddRange( tabPages );
      tabControl1->Location = Point(25,75);
      tabControl1->Size = System::Drawing::Size( 250, 200 );
      label1->Location = Point(25,25);
      label1->Size = System::Drawing::Size( 250, 25 );
      this->ClientSize = System::Drawing::Size( 300, 300 );
      array<Control^>^formControls = {tabControl1,label1};
      this->Controls->AddRange( formControls );
   }

};

int main()
{
   Application::Run( gcnew Form1 );
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TabControl.TabPageCollection クラス
TabControl.TabPageCollection メンバ
System.Windows.Forms 名前空間


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

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

辞書ショートカット

すべての辞書の索引

TabControl.TabPageCollection.IsReadOnly プロパティのお隣キーワード
検索ランキング

   

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



TabControl.TabPageCollection.IsReadOnly プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS