ComponentFactory.Krypton.Ribbon.ViewDrawRibbonAppTab.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);

            // Get base class calculated preferred size
            Size preferredSize = base.GetPreferredSize(context);

            // Add on the fixed border extra
            preferredSize.Width += _preferredBorder.Horizontal;
            preferredSize.Height += _preferredBorder.Vertical;

            return preferredSize;
        }