---
title: "ListColumn Constructor (Int32, String, Int32, HorizontalAlignment)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_WinControls_ListColumn_ctor_4_c92fac01.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ListColumn Constructor (Int32, String, Int32, HorizontalAlignment)
 
Creates and initializes new [ListColumn](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ListColumn.htm.md) class instance.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Sub New ( _textInfoId As Integer, _caption As String, _width As Integer, _textAlignment As HorizontalAlignment _
)
```
 
```csharp
public ListColumn(int textInfoId,string caption,int width,HorizontalAlignment textAlignment
)
```
 
### Parameters
 
 - textInfoId
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer value identifying the text information which should be displayed in this column.

 - caption
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
A string specifying the caption of the column.

 - width
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer number specifying the column width.

 - textAlignment
     - Type: [System.Windows.Forms.HorizontalAlignment](http://msdn2.microsoft.com/en-us/w4d1hwsw)
 [HorizontalAlignment](http://msdn2.microsoft.com/en-us/w4d1hwsw) value that specifies the column text alignment.
 
## Remarks
  
[ThumbnailListItem](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ThumbnailListItem.htm.md) class provides access to the following pieces of text information:
 
|  Constant |  Description |
| --- | --- |
 |  [TextInfoIdCreationDate](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_TextInfoIdCreationDate.htm.md) |  File creation date. |
 |  [TextInfoIdDisplayName](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_TextInfoIdDisplayName.htm.md) |  Display name of the item (its file name without path with or without extention depending on Windows settings). |
 |  [TextInfoIdFileSize](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_TextInfoIdFileSize.htm.md) |  File size. |
 |  [TextInfoIdFileType](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_TextInfoIdFileType.htm.md) |  File type name (as registered in Windows). |
 |  [TextInfoIdPath](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_TextInfoIdPath.htm.md) |  Full path to the file. |
 
If you implement your own list items, you should define identifiers of pieces of text information yourself.
   
## See Also

### Reference

- [ListColumn Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ListColumn.htm.md)
- [ListColumn Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_ListColumn_ctor.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
