123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- using System;
- using System.ComponentModel;
- using System.Drawing;
- namespace Microsoft.Windows.Forms
- {
- partial class UIForm
- {
-
-
-
- [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public IUIControl UIParent
- {
- get
- {
- return null;
- }
- set
- {
- throw new NotSupportedException("不允许为 UIWindow 设置 Parent");
- }
- }
- private UIControl.UIControlCollection m_UIControls;
-
-
-
- [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public UIControl.UIControlCollection UIControls
- {
- get
- {
- this.CheckDisposed();
- if (this.m_UIControls == null)
- this.m_UIControls = new UIControl.UIControlCollection(this);
- return this.m_UIControls;
- }
- }
- private int m_LayoutSuspendCount;
-
-
-
- public bool LayoutSuspended
- {
- get
- {
- return this.m_LayoutSuspendCount != 0;
- }
- }
-
-
-
- public new void SuspendLayout()
- {
- this.m_LayoutSuspendCount++;
- base.SuspendLayout();
- }
-
-
-
- public new void ResumeLayout()
- {
- this.ResumeLayout(false);
- }
-
-
-
-
- public new void ResumeLayout(bool performLayout)
- {
- this.m_LayoutSuspendCount--;
- this.DoLayoutCore(performLayout);
- base.ResumeLayout(performLayout);
- }
-
-
-
- public void DoLayout()
- {
- this.DoLayoutCore(false);
- }
-
-
-
-
- protected void DoLayoutCore(bool performLayout)
- {
- if (performLayout || !this.LayoutSuspended)
- UIControl.DoLayoutInternal(this);
- }
-
-
-
-
-
- public Point PointToUIControl(Point p)
- {
- return p;
- }
-
-
-
-
-
- public Point PointToUIWindow(Point p)
- {
- return p;
- }
-
-
-
-
-
- public Rectangle RectangleToUIControl(Rectangle r)
- {
- return r;
- }
-
-
-
-
-
- public Rectangle RectangleToUIWindow(Rectangle r)
- {
- return r;
- }
-
-
-
-
- public IUIWindow FindUIWindow()
- {
- return this;
- }
-
-
-
-
-
- public UIControl FindUIChild(Point p)
- {
- return UIControl.FindUIChildInternal(this, p);
- }
-
-
-
-
-
- public UIControl FindUIChild(string name)
- {
- return UIControl.FindUIChildInternal(this, name);
- }
-
-
-
-
- protected override void OnSizeChanged(EventArgs e)
- {
- base.OnSizeChanged(e);
- this.DoLayout();
- }
- }
- }
|