ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupItem.ItemGap C# (CSharp) Method

ItemGap() private method

private ItemGap ( IRibbonGroupItem previousItem ) : int
previousItem IRibbonGroupItem
return int
        public virtual int ItemGap(IRibbonGroupItem previousItem)
        {
            // If the previous item is a group button cluster then we want 3 pixels
            if (previousItem is KryptonRibbonGroupCluster)
                return 3;

            // By default we just want a single pixel gap
            return 1;
        }