ControlDesigner.ParentComponent 屬性

定義

取得 ControlDesigner 的父元件。

C#
protected override System.ComponentModel.IComponent ParentComponent { get; }

屬性值

IComponent

ControlDesigner 的父元件;如果沒有父元件,則為 null

備註

預設實作只會檢查所設計的元件是否為控制項,如果為 ,則會 ParentComponent 傳回其父代。

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7