internal RegionArea MakeRegionArea(int allocationRectangleXPosition, int allocationRectangleYPosition, int allocationRectangleWidth, int allocationRectangleHeight, bool beforePrecedence, bool afterPrecedence, int beforeHeight, int afterHeight) { int extent = this.properties.GetProperty("extent").GetLength().MValue(); int startY = allocationRectangleYPosition; int startH = allocationRectangleHeight; if (beforePrecedence) { startY -= beforeHeight; startH -= beforeHeight; } if (afterPrecedence) { startH -= afterHeight; } RegionArea area = new RegionArea( allocationRectangleXPosition + allocationRectangleWidth - extent, startY, extent, startH); area.setBackground(propMgr.GetBackgroundProps()); return area; }
public override RegionArea MakeRegionArea(int allocationRectangleXPosition, int allocationRectangleYPosition, int allocationRectangleWidth, int allocationRectangleHeight) { BorderAndPadding bap = propMgr.GetBorderAndPadding(); BackgroundProps bProps = propMgr.GetBackgroundProps(); int extent = this.properties.GetProperty("extent").GetLength().MValue(); RegionArea area = new RegionArea( allocationRectangleXPosition, allocationRectangleYPosition, allocationRectangleWidth, extent); area.setBackground(bProps); return area; }