---
title: "ThumbnailListItem..::.GetText Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_GetText_1_e1836fc4.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/)

# ThumbnailListItem.GetText Method 
 
Returns the specified text information of the item.
 
**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 Overrides Function GetText ( _textInfoId As Integer _
) As String
```
 
```csharp
public override string GetText(int textInfoId
)
```
 
### Parameters
 
 - textInfoId
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer value identifying the type of requested text information.
 
### Return Value
A string containing requested text information of the item. If the item has no text of specified type, it returns the empty string.
 
### Implements
 
[IListItem.GetText(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IListItem_GetText_1_e1836fc4.htm.md)
 
## 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. |
 
**Note** 
Do not overload this method to change (concatenate) strings. There are two reasons for that:
 
1. This method is performed aynchronously, that is when this method is called for the first time, it returns null and start the load of the text string. After the string is loaded, the [TextChanged](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_WinControls_ListItem_TextChanged.htm.md) event is raised, and only then the null value is replaced with the new string.
2. This method is called every time the control needs to repaint the item, or when it by any other reason needs to know that text string. So if you overload it for concatenating string (for example, adding prefixes), every time the list item is repainted, a new concatenation will be performed.

The solution is to overload the [OnTextChanged(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ListItem_OnTextChanged_1_e1836fc4.htm.md) method.
   
## See Also

### Reference

- [ThumbnailListItem Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ThumbnailListItem.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
