DotNet 4.8.1 build of DotNetBar
This commit is contained in:
50
PROMS/DotNetBar Source Code/TextMarkup/EndMarkupElement.cs
Normal file
50
PROMS/DotNetBar Source Code/TextMarkup/EndMarkupElement.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
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 EndMarkupElement : MarkupElement
|
||||
{
|
||||
#region Internap Implementation
|
||||
private MarkupElement m_StartElement = null;
|
||||
|
||||
public EndMarkupElement(MarkupElement startElement)
|
||||
{
|
||||
m_StartElement = startElement;
|
||||
}
|
||||
|
||||
public override void Measure(System.Drawing.Size availableSize, MarkupDrawContext d)
|
||||
{
|
||||
m_StartElement.MeasureEnd(availableSize, d);
|
||||
this.Bounds = Rectangle.Empty;
|
||||
}
|
||||
|
||||
public override void Render(MarkupDrawContext d)
|
||||
{
|
||||
m_StartElement.RenderEnd(d);
|
||||
}
|
||||
|
||||
protected override void ArrangeCore(System.Drawing.Rectangle finalRect, MarkupDrawContext d)
|
||||
{
|
||||
this.Bounds = Rectangle.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets reference to markup start element.
|
||||
/// </summary>
|
||||
public MarkupElement StartElement
|
||||
{
|
||||
get { return m_StartElement; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user