2024年3月9日发(作者:)

protected override void OnDrawSubItem(DrawListViewSubItemEventArgs e)

{

SubItem(e);

if (View != s)

{

return;

}

if(dex == -1)

{

return;

}

Rectangle bounds = ;

ListViewItemStates itemState = ate;

Graphics g = cs;

if ((itemState & ed)

== ed)

{

--;

Color baseColor = _selectedColor;

Color borderColor = _selectedColor;

Color innerBorderColor = gb(200, 255, 255);

RenderBackgroundInternal(

g,

bounds,

baseColor,

borderColor,

innerBorderColor,

0.35f,

true,

al);

++;

}

else

{

Color backColor = dex % 2 == 0 ?

_rowBackColor1 : _rowBackColor2;

using (SolidBrush brush = new SolidBrush(backColor))

{

ctangle(brush, bounds);

}

}

TextFormatFlags flags = GetFormatFlags(ign);

if (Index == 0)

{

if (ist == null)

{

xt(flags);

return;

}

Image image = ndex == -1 ?

null : [ndex];

if (image == null)

{

xt(flags);

return;

}

Rectangle imageRect = new Rectangle(

bounds.X + 4,

bounds.Y + 2,

- 4,

- 4);

age(image, imageRect);

Rectangle textRect = new Rectangle(

+ 3,

bounds.Y,

- - 3,

);

xt(

g,

,

,

textRect,

lor,

flags);

return;

}

xt(flags);

}