本文整理汇总了C#中TextLocation.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# TextLocation.ToString方法的具体用法?C# TextLocation.ToString怎么用?C# TextLocation.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextLocation
的用法示例。
在下文中一共展示了TextLocation.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindByText
private void FindByText(string text, LanguageType language_type, string translation, TextLocation text_location, bool case_sensitive, TextWordness wordness, int multiplicity, bool at_word_start, bool with_diacritics)
{
if (m_client != null)
{
PrepareNewSearch();
if (!String.IsNullOrEmpty(text))
{
m_client.FindPhrases(text, language_type, translation, text_location, case_sensitive, wordness, multiplicity, at_word_start, m_with_diacritics);
if (m_client.FoundPhrases != null)
{
int phrase_count = m_client.FoundPhrases.Count;
if (m_client.FoundVerses != null)
{
int verse_count = m_client.FoundVerses.Count;
if (multiplicity == 0)
{
m_find_result_header = verse_count + ((verse_count == 1) ? " verse" : " verses") + " without " + text + " " + text_location.ToString() + " in " + m_client.FindScope.ToString();
}
else
{
m_find_result_header = phrase_count + " matches in " + verse_count + ((verse_count == 1) ? " verse" : " verses") + " with " + text + " " + text_location.ToString() + " in " + m_client.FindScope.ToString();
}
DisplayFoundVerses(true);
}
}
}
}
}