System::Xml::XmlAttributeCollection class
XmlAttributeCollection class
名前またはインデックスでアクセスできる属性のコレクションを表します。
class XmlAttributeCollection : public System::Xml::XmlNamedNodeMap
メソッド
| メソッド | 説明 |
|---|---|
| Append(const SharedPtr<XmlAttribute>&) | 指定された属性をコレクションの最後のノードとして挿入します。 |
| CopyTo(const ArrayPtr<SharedPtr<XmlAttribute>>&, int32_t) | このコレクションからすべての XmlAttribute オブジェクトを指定された配列にコピーします。 |
| idx_get(int32_t) | 指定されたインデックスの属性を返します。 |
| idx_get(const String&) | 指定された名前の属性を返します。 |
| idx_get(const String&, const String&) | 指定されたローカル名と名前空間の Uniform Resource Identifier (URI) を持つ属性を返します。 |
| InsertAfter(const SharedPtr<XmlAttribute>&, const SharedPtr<XmlAttribute>&) | 指定された属性を、指定された参照属性の直後に挿入します。 |
| InsertBefore(const SharedPtr<XmlAttribute>&, const SharedPtr<XmlAttribute>&) | 指定された属性を、指定された参照属性の直前に挿入します。 |
| Prepend(const SharedPtr<XmlAttribute>&) | 指定された属性をコレクションの最初のノードとして挿入します。 |
| Remove(const SharedPtr<XmlAttribute>&) | コレクションから指定された属性を削除します。 |
| RemoveAll() | コレクションからすべての属性を削除します。 |
| RemoveAt(int32_t) | コレクションから指定されたインデックスに対応する属性を削除します。 |
| SetNamedItem(SharedPtr<XmlNode>) override | XmlNode を、その XmlNode::get_Name の結果を使用して追加します。 |
Typedefs
| 型定義 | 説明 |
|---|---|
| Ptr | このクラスのインスタンスへの共有ポインタのエイリアスです。 |
備考
このクラスのオブジェクトは、System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してインスタンスを作成しないでください。そうすると実行時エラーやアサーション障害が発生します。このクラスは常に System::SmartPtr ポインタでラップし、そのポインタを関数への引数として渡すようにしてください。
参照
- Class XmlNamedNodeMap
- Namespace System::Xml
- Library Aspose.Page for C++