Exemple #1
0
 /**
  * Creates a ComponentBuilder with the given component as the first part.
  *
  * @param component the first component element
  */
 public ComponentBuilder(BaseComponent component)
 {
     _current = component.Duplicate();
 }
Exemple #2
0
 /**
  * Appends a component to the builder and makes it the current target for
  * formatting. The component will have all the formatting from previous
  * part.
  *
  * @param component the component to append
  * @return this ComponentBuilder for chaining
  */
 public ComponentBuilder Append(BaseComponent component)
 {
     return(Append(component, FormatRetention.All));
 }
Exemple #3
0
 /**
  * Creates a ComponentBuilder with the given text as the first part.
  *
  * @param text the first text element
  */
 public ComponentBuilder(string text)
 {
     _current = new TextComponent(text);
 }