Clone() public méthode

public Clone ( ) : object
Résultat object
 //-----------------------------------------------------------------------
 // Public Methods
 // 
 public ColumnHeader GetColumnHeader()
 {
     using (ColumnHeader ch = new ColumnHeader())
     {
         ch.Name = this.Name;
         ch.Tag = this.Tag;
         ch.Text = this.Text;
         ch.TextAlign = this.TextAlign;
         ch.Width = this.Width;
         ch.ImageIndex = this.ImageIndex;
         ch.ImageKey = this.ImageKey;
         ch.DisplayIndex = this.DisplayIndex;
         return (ch.Clone() as ColumnHeader);
     }
 }