DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,48 @@
using System;
using System.Text;
using System.Drawing;
#if AdvTree
namespace DevComponents.Tree.TextMarkup
#elif DOTNETBAR
namespace DevComponents.DotNetBar.TextMarkup
#elif SUPERGRID
namespace DevComponents.SuperGrid.TextMarkup
#elif LAYOUT
namespace DevComponents.DotNetBar.Layout.TextMarkup
#endif
{
internal class Underline : FontChangeElement
{
#region Internal Implementation
protected override void SetFont(MarkupDrawContext d)
{
d.Underline = true;
//Font font = d.CurrentFont;
//FontStyle style = d.CurrentFont.Style | FontStyle.Underline;
//if (!font.Underline && font.FontFamily.IsStyleAvailable(style))
// d.CurrentFont = new Font(font, style);
//else
// font = null;
//if (font != null)
// m_OldFont = font;
base.SetFont(d);
}
public override void MeasureEnd(Size availableSize, MarkupDrawContext d)
{
d.Underline = false;
base.MeasureEnd(availableSize, d);
}
public override void RenderEnd(MarkupDrawContext d)
{
d.Underline = false;
base.RenderEnd(d);
}
#endregion
}
}