Aspose::Words::Fields::FieldStart::get_FieldData method
FieldStart::get_FieldData method
Gets custom field data which is associated with the field.
const System::ArrayPtr<uint8_t> & Aspose::Words::Fields::FieldStart::get_FieldData() const
Examples
Shows how to get data associated with the field.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Field sample - Field with data.docx");
System::SharedPtr<Aspose::Words::Fields::Field> field = doc->get_Range()->get_Fields()->idx_get(2);
std::cout << System::Text::Encoding::get_Default()->GetString(field->get_Start()->get_FieldData()) << std::endl;
See Also
- Class FieldStart
- Namespace Aspose::Words::Fields
- Library Aspose.Words for C++