SIL.FieldWorks.SharpViews.Box.GapTop C# (CSharp) Method

GapTop() private method

The gap at the top of the box (margin + border + pad) in layout pixels.
private GapTop ( LayoutTransform trans ) : int
trans LayoutTransform
return int
		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>