ComponentFactory.Krypton.Toolkit.ViewDrawMonthUpDown.GetPreferredSize C# (CSharp) Method

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
return System.Drawing.Size
        public override Size GetPreferredSize(ViewLayoutContext context)
        {
            // We want to be as wide as drop down buttons on standard controls
            return new Size(SystemInformation.VerticalScrollBarWidth - 2, 0);
        }