本文整理汇总了C#中IXmpMeta.AppendArrayItem方法的典型用法代码示例。如果您正苦于以下问题:C# IXmpMeta.AppendArrayItem方法的具体用法?C# IXmpMeta.AppendArrayItem怎么用?C# IXmpMeta.AppendArrayItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IXmpMeta
的用法示例。
在下文中一共展示了IXmpMeta.AppendArrayItem方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetIdentifiers
/** Sets the identifier.
*
* @param xmpMeta
* @param id
*/
public static void SetIdentifiers(IXmpMeta xmpMeta, String[] id) {
XmpUtils.RemoveProperties(xmpMeta, XmpConst.NS_DC, IDENTIFIER, true, true);
for (int i = 0; i < id.Length; i++) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, IDENTIFIER, new PropertyOptions(PropertyOptions.ARRAY), id[i],
null);
}
}
示例2: AddTitle
/**
* Adds a title.
*
* @param xmpMeta
* @param title
*/
public static void AddTitle(IXmpMeta xmpMeta, String title) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, TITLE, new PropertyOptions(PropertyOptions.ARRAY_ALTERNATE), title,
null);
}
示例3: SetPublisher
/**
* Sets an array of publishers.
*
* @param xmpMeta
* @param publisher
*/
public static void SetPublisher(IXmpMeta xmpMeta, String[] publisher) {
XmpUtils.RemoveProperties(xmpMeta, XmpConst.NS_DC, PUBLISHER, true, true);
for (int i = 0; i < publisher.Length; i++) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, PUBLISHER, new PropertyOptions(PropertyOptions.ARRAY_ORDERED),
publisher[i], null);
}
}
示例4: AddPublisher
/**
* Adds a single publisher.
*
* @param xmpMeta
* @param publisher
*/
public static void AddPublisher(IXmpMeta xmpMeta, String publisher) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, PUBLISHER, new PropertyOptions(PropertyOptions.ARRAY_ORDERED),
publisher, null);
}
示例5: SetAuthor
/**
* Sets an array of authors.
*
* @param xmpMeta
* @param author
*/
public static void SetAuthor(IXmpMeta xmpMeta, String[] author) {
XmpUtils.RemoveProperties(xmpMeta, XmpConst.NS_DC, CREATOR, true, true);
for (int i = 0; i < author.Length; i++) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, CREATOR, new PropertyOptions(PropertyOptions.ARRAY_ORDERED),
author[i], null);
}
}
示例6: AddAuthor
/**
* Adds a single author.
*
* @param xmpMeta
* @param author
*/
public static void AddAuthor(IXmpMeta xmpMeta, String author) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, CREATOR, new PropertyOptions(PropertyOptions.ARRAY_ORDERED), author,
null);
}
示例7: SetSubject
/**
* Sets a subject.
*
* @param xmpMeta
* @param subject array of subjects
*/
public static void SetSubject(IXmpMeta xmpMeta, String[] subject) {
XmpUtils.RemoveProperties(xmpMeta, XmpConst.NS_DC, SUBJECT, true, true);
for (int i = 0; i < subject.Length; i++) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, SUBJECT, new PropertyOptions(PropertyOptions.ARRAY), subject[i],
null);
}
}
示例8: AddSubject
/**
* Adds a subject.
*
* @param xmpMeta
* @param subject
*/
public static void AddSubject(IXmpMeta xmpMeta, String subject) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, SUBJECT, new PropertyOptions(PropertyOptions.ARRAY), subject, null);
}
示例9: AddDescription
/**
* Adds a description.
*
* @param xmpMeta
* @param desc
*/
public static void AddDescription(IXmpMeta xmpMeta, String desc) {
xmpMeta.AppendArrayItem(XmpConst.NS_DC, DESCRIPTION, new PropertyOptions(PropertyOptions.ARRAY_ALTERNATE),
desc, null);
}