SIL.FieldWorks.IText.InterlinDocForAnalysis.GetSandboxSelLocation C# (CSharp) Method

GetSandboxSelLocation() private method

private GetSandboxSelLocation ( IVwSelection sel ) : Point
sel IVwSelection
return Point
		Point GetSandboxSelLocation(IVwSelection sel)
		{
			Debug.Assert(sel != null);
			Rect rcPrimary = GetPrimarySelRect(sel);
			// The location includes margins, so for RTL we need to adjust the
			// Sandbox so it isn't hard up against the next word.
			// Enhance JohnT: ideally we would probably figure this margin
			// to exactly match the margin between words set by the VC.
			int left = rcPrimary.left;
			if (m_vc.RightToLeft)
				left += 8;
			return new Point(left, rcPrimary.top);
		}
InterlinDocForAnalysis