/// <summary> /// Adds an inline tag at the end of the <see cref="InlineString"/> being built. /// </summary> /// <param name="tag"><see cref="InlineTag"/> to add.</param> /// <exception cref="ArgumentNullException"><paramref name="tag"/> is null.</exception> public void Add(InlineTag tag) { if (ReferenceEquals(tag, null)) { throw new ArgumentNullException("tag"); } InternalAddTag(tag); }
/// <summary> /// Adds an inline tag, returning this instance. /// </summary> /// <param name="tag">Inline tag to add.</param> /// <returns>this instance.</returns> public InlineBuilder Append(InlineTag tag) { Add(tag); return(this); }
internal void InternalAddTag(InlineTag tag) { _Contents.Add(new InlineRunWithProperty(Property, tag)); }
public void Add(InlineTag tag) { InterSegment.Add(tag); }