System.Windows.Forms.ButtonInternal.CheckBoxPopupAdapter.Layout C# (CSharp) Method

Layout() protected method

protected Layout ( PaintEventArgs e ) : LayoutOptions
e PaintEventArgs
return LayoutOptions
        protected override LayoutOptions Layout(PaintEventArgs e) {
            LayoutOptions layout = PaintPopupLayout(e, /* up = */ true);
            Debug.Assert(layout.GetPreferredSizeCore(LayoutUtils.MaxSize)
                == PaintPopupLayout(e, /* up = */ false).GetPreferredSizeCore(LayoutUtils.MaxSize),
                "The state of show3D should not effect PreferredSize");
            return layout;
        }