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


C# IVwEnv.AddSeparatorBar方法代码示例

本文整理汇总了C#中IVwEnv.AddSeparatorBar方法的典型用法代码示例。如果您正苦于以下问题:C# IVwEnv.AddSeparatorBar方法的具体用法?C# IVwEnv.AddSeparatorBar怎么用?C# IVwEnv.AddSeparatorBar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IVwEnv的用法示例。


在下文中一共展示了IVwEnv.AddSeparatorBar方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DisplayVec

		/// <summary>
		/// Calling vwenv.AddObjVec() in Display() and implementing DisplayVec() seems to
		/// work better than calling vwenv.AddObjVecItems() in Display().  Theoretically
		/// this should not be case, but experience trumps theory every time.  :-) :-(
		/// </summary>
		public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
		{
			CheckDisposed();

			ISilDataAccess da = vwenv.DataAccess;
			int count = da.get_VecSize(hvo, tag);
			// Tree Branches consist of everything FOLLOWING the first element which is the Tree root.
			for (int i = 1; i < count; ++i)
			{
				vwenv.AddObj(da.get_VecItem(hvo, tag, i), this,
					VectorReferenceView.kfragTargetObj);
				vwenv.AddSeparatorBar();
			}
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:19,代码来源:LexReferenceTreeBranchesView.cs

示例2: DisplayVec

			public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
			{
				CheckDisposed();
				ISilDataAccess da = vwenv.DataAccess;
				int count = da.get_VecSize(hvo, tag);
				for (int i = 0; i < count; ++i)
				{
					if (i != 0)
						vwenv.AddSeparatorBar();
					vwenv.AddObj(da.get_VecItem(hvo, tag, i), this,
						PhoneEnvReferenceView.kFragEnvironmentObj);
				}
			}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:13,代码来源:PhoneEnvReferenceView.cs

示例3: DisplayVec

			public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
			{
				CheckDisposed();

				ISilDataAccess da = vwenv.DataAccess;
				switch (frag)
				{
					default:
					{
						Debug.Assert(false, "Unrecognized fragment.");
						break;
					}
					case ReversalIndexEntrySliceView.kFragIndices:
					{
						// hvo here is the sense.
						int countRows = da.get_VecSize(hvo, tag);
						Debug.Assert(countRows == m_usedIndices.Count, "Mismatched number of indices.");
						for (int i = 0; i < countRows; ++i)
						{
							vwenv.OpenTableRow();

							int idxHvo = da.get_VecItem(hvo, tag, i);
							vwenv.AddObj(idxHvo, this, ReversalIndexEntrySliceView.kFragIndexMain);

							vwenv.CloseTableRow();
						}
						break;
					}
					case ReversalIndexEntrySliceView.kFragEntries:
					{
						int wsHvo = 0;
						foreach (IReversalIndex idx in m_usedIndices)
						{
							if (idx.Hvo == hvo)
							{
								wsHvo = idx.WritingSystemRAHvo;
								break;
							}
						}
						Debug.Assert(wsHvo > 0, "Could not find writing system.");
						int wsOldDefault = this.DefaultWs;
						this.DefaultWs = wsHvo;

						// hvo here is a reversal index.
						int countEntries = da.get_VecSize(hvo, ReversalIndexEntrySliceView.kFlidEntries);
						for (int j = 0; j < countEntries; ++j)
						{
							if (j != 0)
								vwenv.AddSeparatorBar();
							int entryHvo = da.get_VecItem(hvo, ReversalIndexEntrySliceView.kFlidEntries, j);
							vwenv.AddObj(entryHvo, this, ReversalIndexEntrySliceView.kFragEntryForm);
						}

						this.DefaultWs = wsOldDefault;
						break;
					}
				}
			}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:58,代码来源:ReversalIndexEntrySlice.cs

示例4: DisplayVec

		/// <summary>
		/// Calling vwenv.AddObjVec() in Display() and implementing DisplayVec() seems to
		/// work better than calling vwenv.AddObjVecItems() in Display().  Theoretically
		/// this should not be case, but experience trumps theory every time.  :-) :-(
		/// </summary>
		public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
		{
			ISilDataAccess da = vwenv.DataAccess;
			int count = da.get_VecSize(hvo, tag);
			// Show everything in the collection except the current element from the main display.
			for (int i = 0; i < count; ++i)
			{
				int hvoItem = da.get_VecItem(hvo, tag, i);
				if (m_displayParent != null && hvoItem == m_displayParent.Hvo)
					continue;
				vwenv.AddObj(hvoItem, this,	VectorReferenceView.kfragTargetObj);
				vwenv.AddSeparatorBar();
			}
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:19,代码来源:LexReferenceCollectionView.cs

示例5: DisplayVec

		/// <summary>
		/// Calling vwenv.AddObjVec() in Display() and implementing DisplayVec() seems to
		/// work better than calling vwenv.AddObjVecItems() in Display().  Theoretically
		/// this should not be case, but experience trumps theory every time.  :-) :-(
		/// </summary>
		public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
		{
			ISilDataAccess da = vwenv.DataAccess;
			int count = da.get_VecSize(hvo, tag);
			for (int i = 0; i < count; ++i)
			{
				vwenv.AddObj(da.get_VecItem(hvo, tag, i), this,
					VectorReferenceView.kfragTargetObj);
				vwenv.AddSeparatorBar();
			}
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:16,代码来源:VectorReferenceView.cs

示例6: DisplayVec

		/// <summary>
		/// Calling vwenv.AddObjVec() in Display() and implementing DisplayVec() seems to
		/// work better than calling vwenv.AddObjVecItems() in Display().  Theoretically
		/// this should not be case, but experience trumps theory every time.  :-) :-(
		/// </summary>
		public override void DisplayVec(IVwEnv vwenv, int hvo, int tag, int frag)
		{
			ISilDataAccess da = vwenv.DataAccess;
			int count = da.get_VecSize(hvo, tag);
			// Show everything in the sequence including current element from the main display.
			for (int i = 0; i < count; ++i)
			{
				int hvoItem = da.get_VecItem(hvo, tag, i);
				vwenv.AddObj(hvoItem, this,	VectorReferenceView.kfragTargetObj);
				vwenv.AddSeparatorBar();
			}
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:17,代码来源:LexReferenceSequenceView.cs


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