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