ComponentFactory.Krypton.Ribbon.ViewDrawRibbonCaptionArea.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)
        {
            Debug.Assert(context != null);

            // Enforce the minimum height
            Size preferredSize = base.GetPreferredSize(context);
            preferredSize.Height = Math.Max(_calculatedHeight, preferredSize.Height);

            return preferredSize;
        }