DotNet 4.8.1 build of DotNetBar
This commit is contained in:
36
PROMS/DotNetBar Source Code/TextMarkup/Strike.cs
Normal file
36
PROMS/DotNetBar Source Code/TextMarkup/Strike.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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 Strike : MarkupElement
|
||||
{
|
||||
public override void Measure(Size availableSize, MarkupDrawContext d)
|
||||
{
|
||||
Bounds = Rectangle.Empty;
|
||||
}
|
||||
|
||||
public override void Render(MarkupDrawContext d)
|
||||
{
|
||||
d.StrikeOut = true;
|
||||
}
|
||||
|
||||
public override void RenderEnd(MarkupDrawContext d)
|
||||
{
|
||||
d.StrikeOut = false;
|
||||
|
||||
base.RenderEnd(d);
|
||||
}
|
||||
|
||||
protected override void ArrangeCore(Rectangle finalRect, MarkupDrawContext d)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user