internal int GapTop(LayoutTransform trans) { // Convert each separately to avoid rounding errors. return trans.MpToPixelsY(Style.Margins.TopMp) + trans.MpToBorderPixelsY(Style.Borders.TopMp) + trans.MpToPixelsY(Style.Pads.TopMp); } /// <summary>