SIL.FieldWorks.TE.NotesMainWnd.ScrollToReference C# (CSharp) Method

ScrollToReference() public method

Scroll any note(s) with the given reference into view
public ScrollToReference ( object sender, SILUBS.SharedScrUtils.ScrReference scrRef, ITsString quotedText ) : void
sender object The sender (can be null).
scrRef SILUBS.SharedScrUtils.ScrReference The Scripture reference.
quotedText ITsString The selected text (can be null).
return void
		public void ScrollToReference(object sender, ScrReference scrRef, ITsString quotedText)
		{
			NotesDataEntryView view = ActiveView as NotesDataEntryView;
			Debug.Assert(view != null);
			if (view != null && sender != view)
				view.ScrollRefIntoView(scrRef, quotedText != null ? quotedText.Text : null);
		}