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

            // Validate incoming reference
            if (context == null) throw new ArgumentNullException("context");

            if (Enabled)
                base.SetPalette(_paletteContentNormal);
            else
                base.SetPalette(_paletteContentDisabled);

            return base.GetPreferredSize(context);
        }