src/Misc/EFTools/DesignXmlCore/Refactoring/PreviewChangesList.cs
/// <summary>
///     Retrieve information to draw the item.
/// </summary>
/// <param name="index">The index of the item.</param>
/// <param name="pData">The display data to set.  Note: the array size is always 1</param>
Retrieve information to draw the item.
Retrieve information to draw the item .
public int GetDisplayData(uint index, VSTREEDISPLAYDATA[] pData)
        {
            ArgumentValidation.CheckForOutOfRangeException(index, 0, _changeList.Count - 1);
            var previewNode = _changeList[(int)index];
            var displayData = previewNode.DisplayData;
            if (previewNode.ShowCheckBox)
            {
                displayData.State = displayData.State | ((uint)previewNode.CheckState) << 12;
            }
            pData[0] = displayData;
            return VSConstants.S_OK;
        }
public int GetDisplayData ( uint index , VSTREEDISPLAYDATA [ ] pData ) { ArgumentValidation . CheckForOutOfRangeException ( index , 0 , _changeList . Count - 1 ) ; var previewNode = _changeList [ ( int ) index ] ; var displayData = previewNode . DisplayData ; if ( previewNode . ShowCheckBox ) { displayData . State = displayData . State | ( ( uint ) previewNode . CheckState ) << 12 ; } pData [ 0 ] = displayData ; return VSConstants . S_OK ; }
Retrieve information to draw the item.
Retrieve information to draw the item .
index
uint
The index of the item.
The index of the item .
pData
VSTREEDISPLAYDATA[]
The display data to set.  Note: the array size is always 1
The display data to set . Note : the array size is always 1