protected void PopTextFormat() { if (_textFormatStackTop > 0) { TextFormat2 tf = _textFormatStack[_textFormatStackTop - 1]; _format.CopyFrom(tf); _format.colorChanged = tf.colorChanged; _textFormatStackTop--; } }
protected void PushTextFormat() { TextFormat2 tf; if (_textFormatStack.Count <= _textFormatStackTop) { tf = new TextFormat2(); _textFormatStack.Add(tf); } else { tf = _textFormatStack[_textFormatStackTop]; } tf.CopyFrom(_format); tf.colorChanged = _format.colorChanged; _textFormatStackTop++; }
public HtmlParser() { _textFormatStack = new List<TextFormat2>(); _format = new TextFormat2(); _defaultOptions = new HtmlParseOptions(); }
public HtmlParser() { _textFormatStack = new List <TextFormat2>(); _format = new TextFormat2(); _defaultOptions = new HtmlParseOptions(); }
protected void PushTextFormat() { TextFormat2 tf; if (_textFormatStack.Count <= _textFormatStackTop) { tf = new TextFormat2(); _textFormatStack.Add(tf); } else tf = _textFormatStack[_textFormatStackTop]; tf.CopyFrom(_format); tf.colorChanged = _format.colorChanged; _textFormatStackTop++; }