SIL.FieldWorks.IText.Sandbox.SwitchWord C# (CSharp) Méthode

SwitchWord() public méthode

Set up the sandbox to display the specified analysis, hvoAnalysis, which might be a WfiWordform, WfiAnalysis, or WfiGloss.
public SwitchWord ( SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence selected ) : void
selected SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence
Résultat void
		public void SwitchWord(AnalysisOccurrence selected)
		{
			CheckDisposed();
			m_occurrenceSelected = selected;
			RawWordformWs = 0;
			TreatAsSentenceInitial = m_occurrenceSelected.Index == 0;
			ReconstructForWordBundleAnalysis(m_occurrenceSelected.Analysis.Hvo);
		}

Usage Example

Exemple #1
0
		private void ChangeSandboxRoot(Sandbox sandbox, int hvoNewAnnotation, int hvoNewAnalysis)
		{
			sandbox.Visible = false;
			sandbox.SwitchWord(hvoNewAnnotation, true);
		}