示例#1
0
 public TableLayout(DockContainer container, Size size)
     : this(size, container != null ? container.Generator : Generator.Current)
 {
     if (container != null)
     {
         container.Content = this;
     }
 }
示例#2
0
 public PixelLayout(DockContainer container)
     : this(container != null ? container.Generator : null)
 {
     if (container != null)
     {
         container.Content = this;
     }
 }
示例#3
0
文件: DockLayout.cs 项目: pcdummy/Eto
 /// <summary>
 /// Initializes a new instance of the DockLayout for the specified container
 /// </summary>
 /// <param name="container">Container for the dock layout to manage</param>
 public DockLayout(DockContainer container)
     : base()
 {
     if (container != null)
     {
         container.Content = this;
     }
 }
示例#4
0
 public DynamicLayout(DockContainer container, Padding?padding = null, Size?spacing = null)
     : this(padding, spacing, container != null ? container.Generator : null)
 {
     if (container != null)
     {
         container.Content = this;
     }
 }
示例#5
0
文件: DockLayout.cs 项目: pcdummy/Eto
 public static Container AddDockedControl(this DockContainer container, Control control, Padding?padding = null)
 {
     container.Content = control;
     if (padding != null)
     {
         container.Padding = padding.Value;
     }
     return(container);
 }
示例#6
0
		public DynamicLayout(DockContainer container, Padding? padding = null, Size? spacing = null)
			: this (padding, spacing, container != null ? container.Generator : null)
		{
			if (container != null)
				container.Content = this;
		}
示例#7
0
		public DynamicLayout(DockContainer container, Size? spacing)
			: this (container, null, spacing)
		{
		}
示例#8
0
		public PixelLayout(DockContainer container)
			: this(container != null ? container.Generator : null)
		{
			if (container != null)
				container.Content = this;
		}
示例#9
0
		/// <summary>
		/// Initializes a new instance of the DockLayout for the specified container
		/// </summary>
		/// <param name="container">Container for the dock layout to manage</param>
		public DockLayout (DockContainer container)
			: base ()
		{
			if (container != null)
				container.Content = this;
		}
示例#10
0
 public TableLayout(DockContainer container, int width, int height)
     : this(container, new Size(width, height))
 {
 }
示例#11
0
		public TableLayout(DockContainer container, Size size)
			: this(size, container != null ? container.Generator : Generator.Current)
		{
			if (container != null)
				container.Content = this;
		}
示例#12
0
		public TableLayout(DockContainer container, int width, int height)
			: this(container, new Size(width, height))
		{
		}
示例#13
0
 public DynamicLayout(DockContainer container, Size?spacing)
     : this(container, null, spacing)
 {
 }