Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对找到父控件并不感兴趣。我有兴趣找到对放置给定控件的控件的引用。
矩形.包含
if (control1.Bounds.Contains(control2.Bounds)) { //control1 contains control 2. }
您可以使用此逻辑来查找控件的引用或放置给定控件的控件的引用。