public void BeginRegion(PrintRegionType regionType) { RegionSettings settings = _appSettings.GetRegionSetting(regionType); _currentRegion = new RegionNode(regionType, settings); // Add the default padding values. _currentYPos += settings.PaddingTop + settings.PaddingBottom; _children.Add(_currentRegion); }
public void EndRegion() { _currentRegion = null; }