GH_StringList<T>
Represents a collection of String List Items.
Type parameters:
| T | Some implementation of IGH_StringListItem. where IGH_ListItem |
Constructors
Properties
BoundingBox
#public Rectangle BoundingBox { get; }
Gets the cached boundingbox for this list. This box won't be valid until BuildCache() is called.
StackAlignment
#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
Methods
AppendItem
#public void AppendItem(T item)
Add a new list item.
Parameters:
| item (T) | Item to add, cannot be null. |
AppendItems
#Add a range of items.
Parameters:
| items (IEnumerable<T>) | Items to add, none of the items can be null. |
BuildCache
#public void BuildCache(Rectangle layoutBox)
Measures all the items in the collection using the specified formatting domain and font.
Parameters:
| layoutBox (Rectangle) | The destination of the text. Only the width is used. |
GetEnumerator
#GetEnumerator1
#RenderItems
#public void RenderItems(Graphics graphics, Rectangle destination, double scrollRatio, RenderItem delegatePreRenderItem, RenderItem delegatePostRenderItem)
Parameters:
| graphics (Graphics) | |
| destination (Rectangle) | |
| scrollRatio (double) | |
| delegatePreRenderItem (GH_StringList<T>.RenderItem) | |
| delegatePostRenderItem (GH_StringList<T>.RenderItem) |