SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateControl.GetAffixSequenceContainingSlot C# (CSharp) Method

GetAffixSequenceContainingSlot() private method

private GetAffixSequenceContainingSlot ( IMoInflAffixSlot slot, IFdoReferenceSequence &seq, int &index ) : int
slot IMoInflAffixSlot
seq IFdoReferenceSequence
index int
return int
		private int GetAffixSequenceContainingSlot(IMoInflAffixSlot slot, out IFdoReferenceSequence<IMoInflAffixSlot> seq, out int index)
		{
			index = m_template.PrefixSlotsRS.IndexOf(slot);
			if (index >= 0)
			{
				seq = m_template.PrefixSlotsRS;
				return MoInflAffixTemplateTags.kflidPrefixSlots;
			}
			else
			{
				index = m_template.SuffixSlotsRS.IndexOf(slot);
				if (index >= 0)
				{
					seq = m_template.SuffixSlotsRS;
					return MoInflAffixTemplateTags.kflidSuffixSlots;
				}
			}
			seq = null;
			return 0;
		}
		//public virtual bool OnDisplayInflTemplateInsertSlotBefore(object commandObject, ref UIItemDisplayProperties display)