BrightIdeasSoftware.HeaderControl.CalculateStyle C# (CSharp) Метод

CalculateStyle() защищенный Метод

What style should be applied to the header?
protected CalculateStyle ( OLVColumn column, bool isHot, bool isPressed ) : BrightIdeasSoftware.HeaderStateStyle
column OLVColumn
isHot bool
isPressed bool
Результат BrightIdeasSoftware.HeaderStateStyle
        protected HeaderStateStyle CalculateStyle(OLVColumn column, bool isHot, bool isPressed)
        {
            HeaderFormatStyle headerStyle =
                column.HeaderFormatStyle ?? this.ListView.HeaderFormatStyle ?? new HeaderFormatStyle();
            if (this.ListView.IsDesignMode)
                return headerStyle.Normal;
            if (isPressed)
                return headerStyle.Pressed;
            if (isHot)
                return headerStyle.Hot;
            return headerStyle.Normal;
        }