ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupSeparator.GetPossibleSizes C# (CSharp) Method

GetPossibleSizes() public method

Gets an array of the allowed possible sizes of the container.
public GetPossibleSizes ( ViewLayoutContext context ) : ComponentFactory.Krypton.Ribbon.ItemSizeWidth[]
context ComponentFactory.Krypton.Toolkit.ViewLayoutContext Context used to calculate the sizes.
return ComponentFactory.Krypton.Ribbon.ItemSizeWidth[]
        public ItemSizeWidth[] GetPossibleSizes(ViewLayoutContext context)
        {
            if (_lastShape != _ribbon.RibbonShape)
            {
                switch (_ribbon.RibbonShape)
                {
                    default:
                    case PaletteRibbonShape.Office2007:
                        _lastShape = PaletteRibbonShape.Office2007;
                        _preferredSize = _preferredSize2007;
                        break;
                    case PaletteRibbonShape.Office2010:
                        _lastShape = PaletteRibbonShape.Office2010;
                        _preferredSize = _preferredSize2010;
                        break;
                }
            }

            // Return the one possible size allowed
            return new ItemSizeWidth[] { new ItemSizeWidth(GroupItemSize.Large, _preferredSize.Width) };
        }