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

MakeInnerLevelForFreeformSelection() private method

Sets up the tags for the 0 level of a selection of a free translation or note. This will be the level "inside" the ones that select the paragraph and segment. For a note, we need to select the first note. For a free translation, we need to insert the level for the 'self' property which the VC inserts to isolate the free translations and make it easier to update them.
private MakeInnerLevelForFreeformSelection ( int tagTextProp ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo
tagTextProp int The segment or note tag of an annotation to be selected.
return SIL.FieldWorks.Common.COMInterfaces.SelLevInfo
		private SelLevInfo MakeInnerLevelForFreeformSelection(int tagTextProp)
		{
			var noteLevel = new SelLevInfo();
			noteLevel.ihvo = 0;
			if (tagTextProp == NoteTags.kflidContent)
			{
				noteLevel.tag = SegmentTags.kflidNotes;
			}
			else
			{
				noteLevel.tag = Cache.MetaDataCacheAccessor.GetFieldId2(CmObjectTags.kClassId, "Self", false);
			}
			return noteLevel;
		}
InterlinDocForAnalysis