本文整理汇总了C#中SIL.FieldWorks.Common.COMInterfaces.SelLevInfo.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# SelLevInfo.Clone方法的具体用法?C# SelLevInfo.Clone怎么用?C# SelLevInfo.Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SIL.FieldWorks.Common.COMInterfaces.SelLevInfo
的用法示例。
在下文中一共展示了SelLevInfo.Clone方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TryGetWficLevelsAndEndLevels
private bool TryGetWficLevelsAndEndLevels(IVwSelection vwselNew, out SelLevInfo[] wficLevels, out SelLevInfo[] endLevels)
{
endLevels = null;
wficLevels = GetWficLevelsFromSelection(vwselNew);
if (wficLevels == null)
return false;
SelLevInfo[] rgvsliEnd = GetOneEndPointOfSelection(vwselNew, true);
// wficLevels[0] contains info about the sequence of wfics property. We want the corresponding
// level in rgvsliEnd to have the same tag but not necessarily the same ihvo.
// All the higher levels should be exactly the same. The loop checks this, and if successful
// sets iend to the index of the property correponding to wficLevels[0].
endLevels = null;
int iend;
if (AreHigherLevelsSameObject(wficLevels, rgvsliEnd, out iend))
{
endLevels = wficLevels.Clone() as SelLevInfo[];
endLevels[0] = new SelLevInfo(); // clone is SHALLOW; don't modify element of wficLevels.
endLevels[0].ihvo = rgvsliEnd[iend].ihvo;
endLevels[0].tag = wficLevels[0].tag;
}
return endLevels != null;
}