本文整理汇总了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();
}