DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
namespace DevComponents.DotNetBar.Layout
|
||||
{
|
||||
public class LayoutContext
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the LayoutContext class.
|
||||
/// </summary>
|
||||
/// <param name="layoutControl"></param>
|
||||
/// <param name="graphics"></param>
|
||||
/// <param name="font"></param>
|
||||
public LayoutContext(LayoutControl layoutControl, Graphics graphics, Font font)
|
||||
{
|
||||
LayoutControl = layoutControl;
|
||||
Graphics = graphics;
|
||||
Font = font;
|
||||
FontBaseline = Helpers.GetTextBaseline(layoutControl, font, ContentAlignment.TopLeft);
|
||||
RightToLeft = (layoutControl.RightToLeft == System.Windows.Forms.RightToLeft.Yes);
|
||||
}
|
||||
|
||||
public LayoutControl LayoutControl = null;
|
||||
public Graphics Graphics = null;
|
||||
public Font Font = null;
|
||||
public Size LargestTextSize = Size.Empty;
|
||||
public int FontBaseline = 0;
|
||||
public bool RightToLeft = false;
|
||||
public int AbsoluteIndex = 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user