using System.Collections.ObjectModel; namespace VisualTraceRoute.Text { /// /// Text block class. /// public class TextBlock { private string _postText; private string _text; private BlockType _type; private Collection _innerBlocks; /// /// Gets a collection of inner text blocks. /// public Collection InnerBlocks { get { return this._innerBlocks; } } /// /// Gets or sets the separating string between iterations. /// public string PostText { get { return this._postText; } set { this._postText = value; } } /// /// Gets or sets the text block contents. /// public string Text { get { return this._text; } set { this._text = value; } } /// /// Gets or sets the text block type. /// public BlockType Type { get { return this._type; } set { this._type = value; } } /// /// Initializes a new instance of the TextBlock class. /// /// Text string. /// Block type. /// The separating string between iterations. public TextBlock(string Text, BlockType Type = BlockType.Plain, string PostText = "") { this._innerBlocks = new Collection(); this._text = Text; this._type = Type; this._postText = PostText; } } }