35 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
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;
 | 
						|
    }
 | 
						|
}
 |