ComponentFactory.Krypton.Ribbon.ViewDrawRibbonDesignBase.GetPreferredSize C# (CSharp) Method

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Layout context.
return System.Drawing.Size
        public override Size GetPreferredSize(ViewLayoutContext context)
        {
            Size retSize = base.GetPreferredSize(context);

            // Apply the padding around the child elements
            retSize = CommonHelper.ApplyPadding(Orientation.Horizontal, retSize, PreferredPadding);

            return retSize;
        }