SIL.FieldWorks.SharpViews.LayoutTransform.OffsetBy C# (CSharp) Method

OffsetBy() public method

Answer a layout transform suitable for a child box whose left and top are dx and dy. (Keep InitializeOnlyOffsetBy consistent with this.)
public OffsetBy ( int dx, int dy ) : LayoutTransform
dx int
dy int
return LayoutTransform
		public LayoutTransform OffsetBy(int dx, int dy)
		{
			return new LayoutTransform(XOffset + dx, YOffset + dy, DpiX, DpiY);
		}