本文整理汇总了C#中iTextSharp.xmp.impl.XmpNode.FindQualifierByName方法的典型用法代码示例。如果您正苦于以下问题:C# XmpNode.FindQualifierByName方法的具体用法?C# XmpNode.FindQualifierByName怎么用?C# XmpNode.FindQualifierByName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iTextSharp.xmp.impl.XmpNode
的用法示例。
在下文中一共展示了XmpNode.FindQualifierByName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindQualifierNode
/// <summary>
/// Find or create a qualifier node under a given parent node. Returns a pointer to the
/// qualifier node, and optionally an iterator for the node's position in
/// the parent's vector of qualifiers. The iterator is unchanged if no qualifier node (null)
/// is returned.
/// <em>Note:</em> On entry, the qualName parameter must not have the leading '?' from the
/// XmpPath step.
/// </summary>
/// <param name="parent"> the parent XMPNode </param>
/// <param name="qualName"> the qualifier name </param>
/// <param name="createNodes"> flag if nodes shall be created </param>
/// <returns> Returns the qualifier node if found or created, <code>null</code> otherwise. </returns>
/// <exception cref="XmpException"> </exception>
private static XmpNode FindQualifierNode(XmpNode parent, string qualName, bool createNodes) {
Debug.Assert(!qualName.StartsWith("?"));
XmpNode qualNode = parent.FindQualifierByName(qualName);
if (qualNode == null && createNodes) {
qualNode = new XmpNode(qualName, null);
qualNode.Implicit = true;
parent.AddQualifier(qualNode);
}
return qualNode;
}