ARCed.UI.VS2005DockPaneCaption.MeasureHeight C# (CSharp) Method

MeasureHeight() protected method

protected MeasureHeight ( ) : int
return int
        protected internal override int MeasureHeight()
        {
            int height = this.TextFont.Height + TextGapTop + TextGapBottom;

            if (height < this.ButtonClose.Image.Height + ButtonGapTop + ButtonGapBottom)
                height = this.ButtonClose.Image.Height + ButtonGapTop + ButtonGapBottom;

            return height;
        }