# GH_StringList<T> class

Namespace: [Grasshopper.GUI.StringDisplay](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.stringdisplay.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_StringList<T> : IEnumerable<T>
```

Represents a collection of String List Items.

**Type parameters:**

- `T` (where IGH_ListItem): Some implementation of IGH_StringListItem.

## Constructors

- [GH_StringList<T>](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/ctor.md): (2 overloads)

## Properties

- [BoundingBox](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/boundingbox.md): Gets the cached boundingbox for this list. This box won't be valid until BuildCache() is called.
- [Capacity](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/capacity.md): Gets or sets the total capacity of this list.
- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/count.md): Gets the total number of items contained in this list.
- [IsCached](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/iscached.md): Gets a value indicating whether the cached boundingbox is valid.
- [StackAlignment](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/stackalignment.md): Gets or sets the alignment of the entire stack. This alignment only comes into play when all the items fit within the drawing destination.

## Indexers

- [ListItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/item.md): Get the list item at the specified index.

## Methods

- [AppendItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/appenditem.md): Add a new list item.
- [AppendItems](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/appenditems.md): Add a range of items.
- [BuildCache](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/buildcache.md): Measures all the items in the collection using the specified formatting domain and font.
- [ClearItems](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/clearitems.md): Removes all items from the list and expires the caches.
- [GetEnumerator](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/getenumerator.md)
- [GetEnumerator1](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/getenumerator1.md)
- [RenderItems](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/renderitems.md): (2 overloads)
- [RenderScrollBar](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.stringdisplay.gh-stringlist-1/renderscrollbar.md): (2 overloads)
