XText.XParagraph.XParagraph C# (CSharp) Method

XParagraph() public method

public XParagraph ( Func writeIf, BlockStyle blockStyle = BlockStyle.Normal ) : System
writeIf Func
blockStyle BlockStyle
return System
        public XParagraph(Func<bool> writeIf, BlockStyle blockStyle = BlockStyle.Normal, params XInline[] children)
            : base(writeIf, blockStyle)
        {
            // Unwrap a single span being passed into a paragraph
            if (children.Length == 1 && children[0] is XSpan)
                this.children = new List<XInline>(((XSpan) children[0]).Children);
            else
                this.children = children.ToList();
        }

Same methods

XParagraph::XParagraph ( ) : System
XParagraph::XParagraph ( BlockStyle blockStyle = BlockStyle.Normal ) : System
XParagraph::XParagraph ( Func writeIf ) : System