src/Misc/EFTools/DesignXmlCore/Base/Shell/HeaderBranch.cs
/// <summary>
///     Retrieves display data for the header row.
/// </summary>
Retrieves display data for the header row.
Retrieves display data for the header row .
protected virtual VirtualTreeDisplayData GetDisplayData(int row, int column, VirtualTreeDisplayDataMasks requiredData)
        {
            var data = new VirtualTreeDisplayData(-1);
            if (column == 0)
            {
                data.Bold = true;
            }
            if ((requiredData.Mask & VirtualTreeDisplayMasks.StateImage) != 0
                && row < _currentBranches.Count)
            {
                var columnDescriptor = _columns[column];
                if (columnDescriptor.ColumnIsCheckBox)
                {
                    var checkState = GetCheckBoxValue(row, column);
                    if (checkState != CheckBoxState.Unsupported)
                    {
                        data.StateImageIndex = (short)checkState;
                    }
                }
            }
            return data;
        }
protected virtual VirtualTreeDisplayData GetDisplayData ( int row , int column , VirtualTreeDisplayDataMasks requiredData ) { var data = new VirtualTreeDisplayData ( - 1 ) ; if ( column == 0 ) { data . Bold = true ; } if ( ( requiredData . Mask & VirtualTreeDisplayMasks . StateImage ) != 0 && row < _currentBranches . Count ) { var columnDescriptor = _columns [ column ] ; if ( columnDescriptor . ColumnIsCheckBox ) { var checkState = GetCheckBoxValue ( row , column ) ; if ( checkState != CheckBoxState . Unsupported ) { data . StateImageIndex = ( short ) checkState ; } } } return data ; }
Retrieves display data for the header row.
Retrieves display data for the header row .
// set state index
row
int
column
int
requiredData
VirtualTreeDisplayDataMasks