本文整理汇总了C#中IVwRootBox.PropChanged方法的典型用法代码示例。如果您正苦于以下问题:C# IVwRootBox.PropChanged方法的具体用法?C# IVwRootBox.PropChanged怎么用?C# IVwRootBox.PropChanged使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IVwRootBox
的用法示例。
在下文中一共展示了IVwRootBox.PropChanged方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateDisplayOfPara
// Simiulate inserting and deleting the paragraph to get it redisplayed.
private static void UpdateDisplayOfPara(IStTxtPara para, IVwRootBox sourceRootBox)
{
if (sourceRootBox != null)
sourceRootBox.PropChanged(para.Owner.Hvo, para.OwningFlid, para.IndexInOwner, 1, 1);
}
示例2: ToggleItemExpansion
/// ------------------------------------------------------------------------------------
/// <summary>
/// Toggle the expansion state of the given item
/// </summary>
/// <param name="hvo">The ID of the object to expand/collapse</param>
/// <param name="rootbox">The rootbox of the caller, which will be notified of the change
/// (hence causing the appropriate fragments in this VC to get laid out)</param>
/// <returns>true if the item is expanded. Otherwise, false.</returns>
/// ------------------------------------------------------------------------------------
public bool ToggleItemExpansion(int hvo, IVwRootBox rootbox)
{
if (m_expandTable.ContainsKey(hvo))
m_expandTable.Remove(hvo);
else
{
m_expandTable[hvo] = true;
OpenNoteFieldsWithContent(hvo, rootbox);
}
rootbox.PropChanged(hvo, m_expansionTag, 0, 0, 0);
return m_expandTable.ContainsKey(hvo);
}
示例3: ExpandItem
/// ------------------------------------------------------------------------------------
/// <summary>
/// Expand the item if it is collapsed.
/// </summary>
/// <param name="hvo">hvo of the item to expand</param>
/// <param name="root">The rootbox.</param>
/// ------------------------------------------------------------------------------------
public void ExpandItem(int hvo, IVwRootBox root)
{
if (!m_expandTable.ContainsKey(hvo))
{
m_expandTable[hvo] = true;
root.PropChanged(hvo, m_expansionTag, 0, 0, 0);
}
}
示例4: NotifyParagraph
/// ------------------------------------------------------------------------------------
/// <summary>
/// Notifies a paragraph that needs to have its highlighting refreshed.
/// </summary>
/// <param name="para"></param>
/// <param name="rootBox"></param>
/// ------------------------------------------------------------------------------------
private void NotifyParagraph(IScrTxtPara para, IVwRootBox rootBox)
{
// Paragraph may have been deleted and no longer be valid
if (para.IsValidObject && rootBox != null)
rootBox.PropChanged(para.Hvo, StParaTags.kflidStyleRules, 0, 1, 1);
}