ComponentFactory.Krypton.Ribbon.ViewLayoutRibbonAppButton.UpdateSeparatorSize C# (CSharp) Method

UpdateSeparatorSize() private method

private UpdateSeparatorSize ( ) : void
return void
        private void UpdateSeparatorSize()
        {
            Size separatorSize = new Size(APPBUTTON_GAP, APPBUTTON_GAP);

            // Do we need to add on extra sizing to the separator?
            if (_ownerForm != null)
            {
                // Get the actual owning window border settings
                Padding borders = _ownerForm.RealWindowBorders;

                // Add the left border side to the sizing
                separatorSize.Width += borders.Left;
            }

            _separator.SeparatorSize = separatorSize;
        }