DekGenius.com
[ Team LiB ] Previous Section Next Section

ColumnHeadermarshal by reference, disposable

System.Windows.Forms (system.windows.forms.dll)class

This class represents the heading of a column in a ListView control. Headers are added to a ListView through its Columns property, using the Add() method.

You can specify the Text to use to label the column, and how it is to be aligned horizontally within the column (TextAlign). You do not receive events directly from the header; instead, you should monitor the ListView class for appropriate notifications (e.g., the ColumnClick event).

public class ColumnHeader : System.ComponentModel.Component : ICloneable {
// Public Constructors
   public ColumnHeader();
// Public Instance Properties
   public int Index{get; }
   public ListView ListView{get; }
   public string Text{set; get; }
   public HorizontalAlignment TextAlign{set; get; }
   public int Width{set; get; }
// Public Instance Methods
   public object Clone();  // implements ICloneable
   public override string ToString();  // overrides System.ComponentModel.Component
// Protected Instance Methods
   protected override void Dispose(bool disposing);  // overrides System.ComponentModel.Component
}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) ColumnHeader(System.ICloneable)

Returned By

ColumnHeaderCollection.this

Passed To

ColumnHeaderCollection.{Add(), AddRange(), Contains(), IndexOf(), Insert(), Remove()}

    [ Team LiB ] Previous Section Next Section