System.Windows.Forms.DrawListViewItemEventArgs.DrawText C# (CSharp) Method

DrawText() public method

public DrawText ( ) : void
return void
        public void DrawText ()
        {
		DrawText (TextFormatFlags.Default);
        }

Same methods

DrawListViewItemEventArgs::DrawText ( TextFormatFlags flags ) : void

Usage Example

Example #1
0
 void listViewResults_DrawItem(object sender, DrawListViewItemEventArgs e)
 {
     if (0 != (e.State & ListViewItemStates.Selected))
     {
         e.Graphics.FillRectangle(Brushes.Yellow, e.Bounds);
         //ForeColor = Color.White;
     }
     else
     {
         //ForeColor = Color.Black;
         if (e.ItemIndex % 2 == 0)
         {
             e.Graphics.FillRectangle(Brushes.BlanchedAlmond, e.Bounds);
         }
         else
         {
             e.Graphics.FillRectangle(Brushes.White, e.Bounds);
         }
         if (0 != (e.State & ListViewItemStates.Focused))
         {
             e.DrawFocusRectangle();
         }
     }
     e.DrawText();
 }
All Usage Examples Of System.Windows.Forms.DrawListViewItemEventArgs::DrawText