StatusBarPanel.Parent StatusBarPanel.Parent StatusBarPanel.Parent StatusBarPanel.Parent Property

定义

获取承载状态栏面板的 StatusBar 控件。Gets the StatusBar control that hosts the status bar panel.

public:
 property System::Windows::Forms::StatusBar ^ Parent { System::Windows::Forms::StatusBar ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.StatusBar Parent { get; }
member this.Parent : System.Windows.Forms.StatusBar
Public ReadOnly Property Parent As StatusBar

属性值

包含面板的 StatusBarThe StatusBar that contains the panel.

注解

可以使用此属性来确定StatusBar控制的StatusBarPanel中包含。You can use this property to determine the StatusBar control that a StatusBarPanel is contained within. StatusBarPanel 对象添加到StatusBar控件通过调用Add方法的StatusBar.StatusBarPanelCollection类。StatusBarPanel objects are added to a StatusBar control by calling the Add method of the StatusBar.StatusBarPanelCollection class. StatusBar.StatusBarPanelCollectionStatusBar控件,可通过访问Panels属性。The StatusBar.StatusBarPanelCollection of a StatusBar control is accessible through the Panels property.

适用于

另请参阅