// Constructor public EspackPrintingArea(EnumDocumentZones pZone, RectangleF pArea, float pMaxHeight, EspackFont pFont = null, EnumZoneDocking pDocking = EnumZoneDocking.ALLOWED) { Zone = pZone; Docking = pDocking; // Set dimensions X = pArea.X; Y = pArea.Y; Width = pArea.Width; Height = pArea.Height; RectangleF = pArea; MaxHeight = pMaxHeight; // Set the font/brush. Font = pFont; }
public EspackPrintingArea(EnumDocumentZones pZone, EspackFont pFont = null, EnumZoneDocking pDocking = EnumZoneDocking.ALLOWED) : this(pZone, new RectangleF(-1, -1, -1, -1), -1, pFont, pDocking) { }
public EspackPrintingArea(EnumDocumentZones pZone, float pX, float pY, float pWidth, float pHeight, float pMaxHeight = -1, EspackFont pFont = null, EnumZoneDocking pDocking = EnumZoneDocking.ALLOWED) : this(pZone, new RectangleF(pX, pY, pWidth, pHeight), pMaxHeight, pFont, pDocking) { }
public void AddArea(EnumDocumentZones pZone, EnumZoneDocking pDocking) { AddArea(pZone, null, pDocking); }
// Add a new area and set it as current public void AddArea(EnumDocumentZones pZone, EspackFont pFont = null, EnumZoneDocking pDocking = EnumZoneDocking.NONE) { CurrentArea = new EspackPrintingArea(pZone, pFont, pDocking); Areas.Add(CurrentArea); }