GH_StringList<T>

public class GH_StringList<T> : IEnumerable<T>
Represents a collection of String List Items.
TSome implementation of IGH_StringListItem. where IGH_ListItem

Constructors

GH_StringList

#
public GH_StringList()

GH_StringList

#
public GH_StringList(int initial_capacity)
initial_capacity (int)

Properties

BoundingBox

#
public Rectangle BoundingBox { get; }
Gets the cached boundingbox for this list. This box won't be valid until BuildCache() is called.

Capacity

#
public int Capacity { get; set; }
Gets or sets the total capacity of this list.

Count

#
public int Count { get; }
Gets the total number of items contained in this list.

IsCached

#
public bool IsCached { get; }
Gets a value indicating whether the cached boundingbox is valid.

StackAlignment

#
public StringAlignment StackAlignment { get; set; }
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

#
public T this[int i] { get; }
Get the list item at the specified index.
i (int)Index of item to retrieve.

Methods

AppendItem

#
public void AppendItem(T item)
Add a new list item.
item (T)Item to add, cannot be null.

AppendItems

#
public void AppendItems(IEnumerable<T> items)
Add a range of items.
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.
layoutBox (Rectangle)The destination of the text. Only the width is used.

ClearItems

#
public void ClearItems()
Removes all items from the list and expires the caches.

GetEnumerator

#
[EditorBrowsable(EditorBrowsableState.Never)] public IEnumerator<T> GetEnumerator()

GetEnumerator1

#
[EditorBrowsable(EditorBrowsableState.Never)] public IEnumerator GetEnumerator1()

RenderItems

#
public void RenderItems(Graphics graphics, Rectangle destination, double scrollRatio, RenderItem delegatePreRenderItem, RenderItem delegatePostRenderItem)
graphics (Graphics)
destination (Rectangle)
scrollRatio (double)
delegatePreRenderItem (GH_StringList<T>.RenderItem)
delegatePostRenderItem (GH_StringList<T>.RenderItem)

RenderItems

#
public void RenderItems(Graphics graphics, Rectangle destination, double scrollRatio)
graphics (Graphics)
destination (Rectangle)
scrollRatio (double)

RenderScrollBar

#
public void RenderScrollBar(Graphics G, Rectangle destination, double scrollRatio, Color scrollColor, ref Rectangle scrollRectangle)
G (Graphics)
destination (Rectangle)
scrollRatio (double)
scrollColor (Color)
scrollRectangle (ref Rectangle)

RenderScrollBar

#
public void RenderScrollBar(Graphics G, Rectangle destination, double scrollRatio, ref Rectangle scrollRectangle)
G (Graphics)
destination (Rectangle)
scrollRatio (double)
scrollRectangle (ref Rectangle)