public TextElementContainer EndContainer() { TextElementContainer container = (TextElementContainer)ContainerStack.Pop(); if (ContainerStack.Any()) { ContainerStack.Peek().Add(container); } return(container); }
public void StartContainer(float width, float height) { var container = new TextElementContainer(width, height); ContainerStack.Push(container); }