本文整理匯總了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;
}