本文整理匯總了C#中System.Windows.Documents.Run.BringIntoView方法的典型用法代碼示例。如果您正苦於以下問題:C# Run.BringIntoView方法的具體用法?C# Run.BringIntoView怎麽用?C# Run.BringIntoView使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Documents.Run
的用法示例。
在下文中一共展示了Run.BringIntoView方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MoveToRun
/// <summary>
/// Moves to the caret and brings the view to the <paramref name="run"/>
/// </summary>
/// <param name="run">run to move to</param>
private void MoveToRun(Run run)
{
if (run == null)
{
return;
}
run.BringIntoView();
this.HelpText.CaretPosition = run.ElementEnd;
this.HelpText.Focus();
}
示例2: changeLightRun
public static void changeLightRun(Run runLight)
{
bool isLocked = false;
if (MainWindow.s_pW.m_isCanEdit == false)
{
isLocked = true;
}
else
{
MainWindow.s_pW.m_isCanEdit = false;
}
if (MainWindow.s_pW.m_lastSelRun != null)
{
//<text>
MainWindow.s_pW.m_lastSelRun.Background = null;
}
MainWindow.s_pW.m_lastSelRun = runLight;
//<text>
runLight.Background = new SolidColorBrush(XmlControl.s_arrTextColor[(int)XmlControl.XmlTextColorType.BCK_CURSEL]);
if (isLocked == false)
{
MainWindow.s_pW.m_isCanEdit = true;
}
runLight.BringIntoView();
}