SIL.FieldWorks.IText.InterlinVc.DisplayWordBundleMethod.GetRealForm C# (CSharp) Method

GetRealForm() private method

If we are displaying the baseline, and should display a substitute string rather than the requested WS of the wordform, return the substitute string. Otherwise return null.
private GetRealForm ( int ws, int choiceIndex ) : ITsString
ws int
choiceIndex int
return ITsString
			private ITsString GetRealForm(int ws, int choiceIndex)
			{
				if (choiceIndex != 0)
					return null; // only ever correct the baselin
				if (ws != m_this.m_wsVernForDisplay)
					return null; // only ever correct for the default vernacular WS.
				if (m_analysisOccurrence != null)
					return m_analysisOccurrence.BaselineText;
				return null;
			}