当前位置: 首页>>代码示例>>C#>>正文


C# IVwRootBox.PropChanged方法代码示例

本文整理汇总了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);
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:6,代码来源:TeStVc.cs

示例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);
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:22,代码来源:TeNotesVc.cs

示例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);
			}
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:15,代码来源:TeNotesVc.cs

示例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);
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:13,代码来源:DiffDialog.cs


注:本文中的IVwRootBox.PropChanged方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。