Aspose::Words::Markup::CustomXmlPart Class Reference

Detailed Description

Represents a Custom XML Data Storage Part (custom XML data within a package).

A DOCX or DOC document can contain one or more Custom XML Data Storage parts. Aspose.Words preserves and allows to create and extract Custom XML Data via the CustomXmlParts collection.

See also
Aspose::Words::Document::get_CustomXmlParts, Aspose::Words::Markup::CustomXmlPartCollection

#include <Aspose.Words.Cpp/Model/Markup/CustomXmlPart.h>

+ Inheritance diagram for Aspose::Words::Markup::CustomXmlPart:

Public Member Functions

 CustomXmlPart ()
 
SharedPtr< CustomXmlPartClone ()
 Makes a "deep enough" copy of the object. Does not duplicate the bytes of the Data value. More...
 
ArrayPtr< uint8_t > get_Data () const
 Gets or sets the XML content of this Custom XML Data Storage Part. More...
 
String get_Id () const
 Gets or sets the string that identifies this custom XML part within an OOXML document. More...
 
SharedPtr< CustomXmlSchemaCollectionget_Schemas () const
 Specifies the set of XML schemas that are associated with this custom XML part. More...
 
void set_Data (ArrayPtr< uint8_t > value)
 Setter for get_Data. More...
 
void set_Id (String value)
 Setter for get_Id. More...
 
- Public Member Functions inherited from Object
ASPOSECPP_SHARED_API Object ()
 
ASPOSECPP_SHARED_API Object (Object const &x)
 
virtual ASPOSECPP_SHARED_API ~Object ()
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 
Detail::SmartPtrCounter * GetCounter ()
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 
ASPOSECPP_SHARED_API void Lock ()
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 
Objectoperator= (Object const &x)
 
bool ReferenceEquals (String const &str, std::nullptr_t)
 
bool ReferenceEquals (String const &str1, String const &str2)
 
int RemovedSharedRefs (int count)
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 
int SharedCount () const
 
ObjectSharedRefAdded ()
 
int SharedRefRemovedSafe ()
 
virtual ASPOSECPP_SHARED_API String ToString () const
 
ASPOSECPP_SHARED_API void Unlock ()
 
Detail::SmartPtrCounter * WeakRefAdded ()
 
void WeakRefRemoved ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 
- Static Public Member Functions inherited from Object
bool Equals (double const &objA, double const &objB)
 
bool Equals (float const &objA, float const &objB)
 
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 
static const TypeInfoType ()
 

Constructor & Destructor Documentation

◆ CustomXmlPart()

Aspose::Words::Markup::CustomXmlPart::CustomXmlPart ( )

Member Function Documentation

◆ Clone()

System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> Aspose::Words::Markup::CustomXmlPart::Clone ( )

Makes a "deep enough" copy of the object. Does not duplicate the bytes of the Data value.

◆ get_Data()

System::ArrayPtr<uint8_t> Aspose::Words::Markup::CustomXmlPart::get_Data ( ) const

Gets or sets the XML content of this Custom XML Data Storage Part.

The default value is an empty byte array. The value cannot be null.

◆ get_Id()

System::String Aspose::Words::Markup::CustomXmlPart::get_Id ( ) const

Gets or sets the string that identifies this custom XML part within an OOXML document.

ISO/IEC 29500 specifies that this value is a GUID, but old versions of Microsoft Word allowed any string here. Aspose.Words does the same for ECMA-376 format. But note, that Microsoft Word Online fails to open a document created with a non-GUID value. So, a GUID is preferred value for this property.

A valid value must be an identifier that is unique among all custom XML data parts in this document.

The default value is an empty string. The value cannot be null.

◆ get_Schemas()

System::SharedPtr<Aspose::Words::Markup::CustomXmlSchemaCollection> Aspose::Words::Markup::CustomXmlPart::get_Schemas ( ) const

Specifies the set of XML schemas that are associated with this custom XML part.

◆ set_Data()

void Aspose::Words::Markup::CustomXmlPart::set_Data ( System::ArrayPtr< uint8_t >  value)

◆ set_Id()

void Aspose::Words::Markup::CustomXmlPart::set_Id ( System::String  value)