Class XmpCollection

Class XmpCollection

名称: Aspose.Imaging.Xmp 收藏: Aspose.Imaging.dll (25.4.0)

XMP 元素集合

[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class XmpCollection : IList<ixmptype>, ICollection<ixmptype>, IEnumerable<ixmptype>, IEnumerable, IXmpType

Inheritance

object XmpCollection

Derived

XmpArray

Implements

IList , ICollection , IEnumerable , IEnumerable , IXmpType

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

XmpCollection()

[JsonConstructor]
public XmpCollection()

Properties

Count

获取在 System.Collections.IList 中包含的元素数量。

public int Count { get; }

财产价值

int

IsReadOnly

收到一个值,表明收藏是否仅读取。

public bool IsReadOnly { get; }

财产价值

bool

这个[因特]

接收或将元素放在指定的指数上。

public IXmpType this[int index] { get; set; }

财产价值

IXmpType

Methods

Add(对象)

添加一个 XMP 数据项目。

public void Add(object item)

Parameters

item object

一个XMP项目。

Exceptions

ArgumentNullException

ArgumentNullException

Add(第九百五十章)

将一个项目添加到收藏中。

public void Add(IXmpType item)

Parameters

item IXmpType

添加到收藏的物品。

AddItem(线条)

添加新项目。

public void AddItem(string item)

Parameters

item string

该项目将添加到项目列表中。

Exceptions

ArgumentNullException

ArgumentNullException

Clear()

将所有物品从收藏中删除。

public void Clear()

Contains(第九百五十章)

决定收藏是否包含特定的值。

public bool Contains(IXmpType item)

Parameters

item IXmpType

在收藏中找到的物品。

Returns

bool

是真实的,如果物品在收藏中发现;否则,假。

CopyTo(第九百五十章( ), int)

将收藏的元素复制到一个序列,从一个特定的序列指数开始。

public void CopyTo(IXmpType[] array, int arrayIndex)

Parameters

array IXmpType ( )

一维序列是从收藏中复制的元素的目的地,序列必须有基于零的索引。

arrayIndex int

以零为基础的指数在复制开始的序列中。

GetEnumerator()

返回通过收藏的列表。

public IEnumerator<ixmptype> GetEnumerator()

Returns

IEnumerator < IXmpType >

一个 IEnumerator<IXmpType>可以用来通过收藏进行 iterate。

GetXmlValue()

将 XMP 值转换为 XML 代表性。

public string GetXmlValue()

Returns

string

返回转换为 XML 表示的 XMP 值。

GetXmpRepresentation()

收到此的 XMP 字符串值。

public string GetXmpRepresentation()

Returns

string

返回在 XMP 格式中包含的字符串值。

IndexOf(第九百五十章)

确定收藏中的特定项目的指数。

public int IndexOf(IXmpType item)

Parameters

item IXmpType

在收藏中找到的物品。

Returns

int

如果在收藏中发现的项目的指数;否则, -1.

Insert(, IXmpType)

在指定的指数中输入一个项目到收藏中。

public void Insert(int index, IXmpType item)

Parameters

index int

基于零的指数,在哪个项目要输入。

item IXmpType

将物品添加到收藏中。

Remove(第九百五十章)

从收藏中删除特定对象的第一次出现。

public bool Remove(IXmpType item)

Parameters

item IXmpType

将物品从收藏中移除。

Returns

bool

如果项目已成功从收藏中删除; 否则,虚假. 此方法也返回虚假,如果项目未在原始收藏中找到。

RemoveAt(因特)

在指定的指数中删除项目。

public void RemoveAt(int index)

Parameters

index int

要删除的零基的项目指数。

ToString()

返回代表此示例的 XML System.String。

public override string ToString()

Returns

string

XML System.String 代表此例子。

ToString(对象)

返回一个 System.String 代表此例子。

protected static string ToString(object obj)

Parameters

obj object

一个对象。

Returns

string

一个系统.String 代表这个实例。

 中文