SIL.FieldWorks.XWorks.InterestingTextList.IsInterestingText C# (CSharp) 메소드

IsInterestingText() 공개 메소드

public IsInterestingText ( IStText text ) : bool
text IStText
리턴 bool
		public bool IsInterestingText(IStText text)
		{
			if (m_interestingTests == null)
				m_interestingTests = new HashSet<IStText>(InterestingTexts);
			return m_interestingTests.Contains(text);
		}

Usage Example

예제 #1
0
        private bool BelongsToInterestingText(ISegment seg)
        {
            if (m_interestingTexts == null)
            {
                return(true);                // no filtering
            }
            IStText text = seg.Paragraph != null ? seg.Paragraph.Owner as IStText : null;

            return(text != null && m_interestingTexts.IsInterestingText(text));
        }
All Usage Examples Of SIL.FieldWorks.XWorks.InterestingTextList::IsInterestingText