protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style) { style.TextDecoration = dfMarkupTextDecoration.Underline; style = applyTextStyleAttributes(style); for (int i = 0; i < ChildNodes.Count; i++) { var child = ChildNodes[i]; if (child is dfMarkupString) { var text = child as dfMarkupString; if (text.Text == "\n") { if (style.PreserveWhitespace) { container.AddLineBreak(); } continue; } } child.PerformLayout(container, style); } }
protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style) { style = base.applyTextStyleAttributes(style); for (int i = 0; i < base.ChildNodes.Count; i++) { dfMarkupElement item = base.ChildNodes[i]; if (!(item is dfMarkupString) || !((item as dfMarkupString).Text == "\n")) { item.PerformLayout(container, style); } else if (style.PreserveWhitespace) { container.AddLineBreak(); } } }
protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style) { style = base.applyTextStyleAttributes(style); for (int i = 0; i < base.ChildNodes.Count; i++) { dfMarkupElement element = base.ChildNodes[i]; if (element is dfMarkupString) { dfMarkupString str = element as dfMarkupString; if (str.Text == "\n") { if (style.PreserveWhitespace) { container.AddLineBreak(); } continue; } } element.PerformLayout(container, style); } }
protected override void _PerformLayoutImpl( dfMarkupBox container, dfMarkupStyle style ) { container.AddLineBreak(); }
protected override void _PerformLayoutImpl( dfMarkupBox container, dfMarkupStyle style ) { style.TextDecoration = dfMarkupTextDecoration.Underline; style = applyTextStyleAttributes( style ); for( int i = 0; i < ChildNodes.Count; i++ ) { var child = ChildNodes[ i ]; if( child is dfMarkupString ) { var text = child as dfMarkupString; if( text.Text == "\n" ) { if( style.PreserveWhitespace ) { container.AddLineBreak(); } continue; } } child.PerformLayout( container, style ); } }
protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style) { container.AddLineBreak(); }