// Resize any AutoSize controls to their preferred size
if (c.AutoSize == true) {
Size new_size = c.GetPreferredSize (c.Size);
- c.SetBoundsCoreInternal (c.Left, c.Top, new_size.Width, new_size.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, c.Top, new_size.Width, new_size.Height, BoundsSpecified.None);
}
switch (settings.FlowDirection) {
// Offset the right margin and set the control to our point
currentLocation.Offset (0, c.Margin.Bottom * -1);
- c.SetBoundsCoreInternal (currentLocation.X + c.Margin.Left, currentLocation.Y - c.Height, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (currentLocation.X + c.Margin.Left, currentLocation.Y - c.Height, c.Width, c.Height, BoundsSpecified.None);
// Update our location pointer
currentLocation.Y -= (c.Height + c.Margin.Top);
// Offset the left margin and set the control to our point
currentLocation.Offset (c.Margin.Left, 0);
- c.SetBoundsCoreInternal (currentLocation.X, currentLocation.Y + c.Margin.Top, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (currentLocation.X, currentLocation.Y + c.Margin.Top, c.Width, c.Height, BoundsSpecified.None);
// Update our location pointer
currentLocation.X += c.Width + c.Margin.Right;
// Offset the right margin and set the control to our point
currentLocation.Offset (c.Margin.Right * -1, 0);
- c.SetBoundsCoreInternal (currentLocation.X - c.Width, currentLocation.Y + c.Margin.Top, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (currentLocation.X - c.Width, currentLocation.Y + c.Margin.Top, c.Width, c.Height, BoundsSpecified.None);
// Update our location pointer
currentLocation.X -= (c.Width + c.Margin.Left);
// Offset the top margin and set the control to our point
currentLocation.Offset (0, c.Margin.Top);
- c.SetBoundsCoreInternal (currentLocation.X + c.Margin.Left, currentLocation.Y, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (currentLocation.X + c.Margin.Left, currentLocation.Y, c.Width, c.Height, BoundsSpecified.None);
// Update our location pointer
currentLocation.Y += c.Height + c.Margin.Bottom;
// Set the new heights for each control
foreach (Control c in row)
if (allDockFill && noAuto)
- c.SetBoundsCoreInternal (c.Left, c.Top, c.Width, 0, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, c.Top, c.Width, 0, BoundsSpecified.None);
else if (c.Dock == DockStyle.Fill || ((c.Anchor & AnchorStyles.Top) == AnchorStyles.Top) && ((c.Anchor & AnchorStyles.Bottom) == AnchorStyles.Bottom))
- c.SetBoundsCoreInternal (c.Left, c.Top, c.Width, rowBottom - c.Top - c.Margin.Bottom, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, c.Top, c.Width, rowBottom - c.Top - c.Margin.Bottom, BoundsSpecified.None);
else if (c.Dock == DockStyle.Bottom || ((c.Anchor & AnchorStyles.Bottom) == AnchorStyles.Bottom))
- c.SetBoundsCoreInternal (c.Left, rowBottom - c.Margin.Bottom - c.Height, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, rowBottom - c.Margin.Bottom - c.Height, c.Width, c.Height, BoundsSpecified.None);
else if (c.Dock == DockStyle.Top || ((c.Anchor & AnchorStyles.Top) == AnchorStyles.Top))
continue;
else
- c.SetBoundsCoreInternal (c.Left, ((rowBottom - rowTop) / 2) - (c.Height / 2) + (int)Math.Floor (((c.Margin.Top - c.Margin.Bottom) / 2.0)) + rowTop, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, ((rowBottom - rowTop) / 2) - (c.Height / 2) + (int)Math.Floor (((c.Margin.Top - c.Margin.Bottom) / 2.0)) + rowTop, c.Width, c.Height, BoundsSpecified.None);
// Return bottom y of this row used
if (rowBottom == 0)
// Set the new widths for each control
foreach (Control c in col)
if (allDockFill && noAuto)
- c.SetBoundsCoreInternal (c.Left, c.Top, 0, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, c.Top, 0, c.Height, BoundsSpecified.None);
else if (c.Dock == DockStyle.Fill || ((c.Anchor & AnchorStyles.Left) == AnchorStyles.Left) && ((c.Anchor & AnchorStyles.Right) == AnchorStyles.Right))
- c.SetBoundsCoreInternal (c.Left, c.Top, rowRight - c.Left - c.Margin.Right, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (c.Left, c.Top, rowRight - c.Left - c.Margin.Right, c.Height, BoundsSpecified.None);
else if (c.Dock == DockStyle.Right || ((c.Anchor & AnchorStyles.Right) == AnchorStyles.Right))
- c.SetBoundsCoreInternal (rowRight - c.Margin.Right - c.Width, c.Top, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (rowRight - c.Margin.Right - c.Width, c.Top, c.Width, c.Height, BoundsSpecified.None);
else if (c.Dock == DockStyle.Left || ((c.Anchor & AnchorStyles.Left) == AnchorStyles.Left))
continue;
else
- c.SetBoundsCoreInternal (((rowRight - rowLeft) / 2) - (c.Width / 2) + (int)Math.Floor (((c.Margin.Left - c.Margin.Right) / 2.0)) + rowLeft, c.Top, c.Width, c.Height, BoundsSpecified.None);
+ c.SetBoundsInternal (((rowRight - rowLeft) / 2) - (c.Width / 2) + (int)Math.Floor (((c.Margin.Left - c.Margin.Right) / 2.0)) + rowLeft, c.Top, c.Width, c.Height, BoundsSpecified.None);
// Return rightmost x of this row used
if (rowRight == 0)
FinishColumn (rowControls);
if (final_height > 0)
- parent.SetBounds (parent.Left, parent.Top, parent.Width, final_height + parent.Padding.Bottom, BoundsSpecified.None);
+ parent.SetBoundsInternal (parent.Left, parent.Top, parent.Width, final_height + parent.Padding.Bottom, BoundsSpecified.None);
return false;