ModulePage コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ModulePage クラスの新しいインスタンスを初期化します。
protected:
ModulePage();
protected ModulePage ();
Protected Sub New ()
例
次の例では、カスタム ModulePage オブジェクトを作成します。
internal partial class DemoPage : ModulePage {
bool _busy = true;
private DemoModuleServiceProxy _serviceProxy;
private ListPageListView _listView;
private ListViewContainerPanel _listViewContainer;
private System.Resources.ResourceManager _myRM;
private bool _readOnly;
public DemoPage()
: base() {
myModLP(new ListPageListView());
initX();
}
}
void myModLP(ListPageListView listView) {
SuspendLayout();
_listViewContainer = new ListViewContainerPanel();
_listViewContainer.SuspendLayout();
_listViewContainer.Name = "_listViewContainer";
_listViewContainer.Dock = DockStyle.Fill;
_listViewContainer.DockPadding.All = 1;
_listViewContainer.TabIndex = 100;
_listViewContainer.BorderStyle = BorderStyle.Fixed3D;
//_listViewContainer.BackColor =
_listViewContainer.Width = 933;
Label lbl = new Label();
lbl.Height = 16;
lbl.Dock = DockStyle.Top;
lbl.Text = "put refresh here";
_listView = listView;
_listView.Name = "_listView";
_listView.BorderStyle = BorderStyle.None;
_listView.Dock = DockStyle.Fill;
_listView.FullRowSelect = true;
_listView.HeaderStyle = ColumnHeaderStyle.Clickable;
_listView.HideSelection = false;
_listView.LabelWrap = false;
_listView.ShowGroups = false;
_listView.ShowItemToolTips = true;
_listView.TabIndex = 3;
_listView.View = View.Details;
_listView.Width = 933;
_listView.BorderStyle = BorderStyle.FixedSingle;
// _listView.ColumnClick += new ColumnClickEventHandler(OnListViewColumnClick);
_listViewContainer.Controls.Add(_listView);
Controls.Add(_listViewContainer);
Controls.Add(lbl);
}
注釈
基底クラスのコンストラクターは、派生クラスのコンストラクターから呼び出す必要があります。