ModuleListPage.ListViewContainer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the list view container.
protected:
property System::Windows::Forms::Control ^ ListViewContainer { System::Windows::Forms::Control ^ get(); };
protected System.Windows.Forms.Control ListViewContainer { get; }
member this.ListViewContainer : System.Windows.Forms.Control
Protected ReadOnly Property ListViewContainer As Control
Property Value
The Control object that contains the list view.
Examples
The following example calls the System.Windows.Forms.Control.SuspendLayout method, adds a label and combo box to the controls, and then calls the System.Windows.Forms.Control.ResumeLayout method.
protected override void InitializeListPage() {
TableLayoutPanel tblLayPanl = getConfiguredTPL();
try {
ListViewContainer.SuspendLayout();
tblLayPanl.SuspendLayout();
// get a new label with all properties set
tblLayPanl.Controls.Add(getMyLabel());
// get a new ComboBox with all properties set
tblLayPanl.Controls.Add(getMyComboBx());
} finally {
ListViewContainer.ResumeLayout();
tblLayPanl.ResumeLayout();
}
_keyHeader = getColHdr("key ");
ListView.Columns.AddRange(new ColumnHeader[] {
_keyHeader,
getColHdr("Value "),
getColHdr("Local "),});
ListView.MultiSelect = false;
ListView.ShowGroups = true;
ListView.SizeChanged += new
EventHandler(ListView_SizeChanged);
}