Пример #1
0
 public void Write(WritableBlock block)
 {
     if (block != null)
     {
         block.WriteTo(this.ViewContext.Writer, Bootstrap.Context);
     }
 }
Пример #2
0
 public void AppendNextBlock(WritableBlock value)
 {
     if (next == null)
     {
         next = value;
     }
     else
     {
         next.AppendNextBlock(value);
     }
 }
Пример #3
0
 public void AppendNextBlock(WritableBlock value)
 {
     if (next == null)
     {
         next = value;
     }
     else
     {
         next.AppendNextBlock(value);
     }
 }
Пример #4
0
        public AnyContentElement AddContent(object value)
        {
            var newContent = new SimpleBlock().Value(value);

            if (content == null)
            {
                content = newContent;
            }
            else
            {
                content.Append(newContent);
            }
            return(this);
        }