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

OccurrenceContainingSelection() private method

private OccurrenceContainingSelection ( ) : SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence
return SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence
		internal override AnalysisOccurrence OccurrenceContainingSelection()
		{
			if (m_rootb == null)
				return null;

			// This works fine for non-Sandbox panes,
			// Sandbox panes' selection may be in the Sandbox.
			if (ExistingFocusBox != null &&
				ExistingFocusBox.SelectedOccurrence != null &&
				ExistingFocusBox.SelectedOccurrence.IsValid)
			{
				return ExistingFocusBox.SelectedOccurrence;
			}

			// If the above didn't work, this probably won't either, but try anyway...
			return base.OccurrenceContainingSelection();
		}
InterlinDocForAnalysis