SIL.FieldWorks.IText.InterlinVc.SegDefnFromFfFlid C# (CSharp) Method

SegDefnFromFfFlid() private method

private SegDefnFromFfFlid ( int flid ) : ICmAnnotationDefn
flid int
return ICmAnnotationDefn
		internal ICmAnnotationDefn SegDefnFromFfFlid(int flid)
		{
			CheckDisposed();
			switch(flid)
			{
			case InterlinLineChoices.kflidFreeTrans:
					throw new InvalidOperationException("Uses obsolete FT annotation defn that is no longer in system.");
			case InterlinLineChoices.kflidLitTrans:
					throw new InvalidOperationException("Uses obsolete FT annotation defn that is no longer in system.");
			case InterlinLineChoices.kflidNote:
					return GetAnnDefnId(m_cache, CmAnnotationDefnTags.kguidAnnNote);
			default:
				break; // unknown type, ignore it.
			}
			return null;
		}