Tinkr2/4.2/AphelionCore/AphelionCore/Controls/AutoSizeControl.cs
/// <summary>
/// Measures the size of the control and updates <see cref="Width"/> and <see cref="Height"/>
/// </summary>
/// <returns>Returns true if the size of the control was changed and Invalidated; else false</returns>
Measures the size of the control and updates  and
Measures the size of the control and updates and
protected bool MeasureControl()
      {
         if (AutoSizeMode == AutoSizeModes.None)
         {
            return false;
         }
         var sz = OnMeasureControl(AutoSizeMode);
         if (sz.Width == Width && sz.Height == Height)
         {
            return false;
         }
         var oldSuspended = InternalSuspended;
         InternalSuspended = true;
         var bounds = ScreenBounds;
         try
         {
            if ((AutoSizeMode & AutoSizeModes.Width) != 0)
            {
               base.Width = sz.Width;
            }
            if ((AutoSizeMode & AutoSizeModes.Height) != 0)
            {
               base.Height = sz.Height;
            }
         }
         finally
         {
            InternalSuspended = oldSuspended;
         }
         bounds.Combine(ScreenBounds);
         Invalidate(bounds);
         return true;
      }
protected bool MeasureControl ( ) { if ( AutoSizeMode == AutoSizeModes . None ) { return false ; } var sz = OnMeasureControl ( AutoSizeMode ) ; if ( sz . Width == Width && sz . Height == Height ) { return false ; } var oldSuspended = InternalSuspended ; InternalSuspended = true ; var bounds = ScreenBounds ; try { if ( ( AutoSizeMode & AutoSizeModes . Width ) != 0 ) { base . Width = sz . Width ; } if ( ( AutoSizeMode & AutoSizeModes . Height ) != 0 ) { base . Height = sz . Height ; } } finally { InternalSuspended = oldSuspended ; } bounds . Combine ( ScreenBounds ) ; Invalidate ( bounds ) ; return true ; }
Measures the size of the control and updates  and
Measures the size of the control and updates and
Returns true if the size of the control was changed and Invalidated; else false
Returns true if the size of the control was changed and Invalidated ; else false