Пример #1
0
    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);
        }
    }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
 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();
         }
     }
 }
Пример #4
0
 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);
     }
 }
Пример #5
0
 protected override void _PerformLayoutImpl( dfMarkupBox container, dfMarkupStyle style )
 {
     container.AddLineBreak();
 }
Пример #6
0
    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 );

        }
    }
Пример #7
0
 protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style)
 {
     container.AddLineBreak();
 }