Implements the REF field.
Shows how to insert REF fields to reference bookmarks.
Shows how to create bookmarked text with a SET field, and then display it in the document using a REF field.
#include <Aspose.Words.Cpp/Fields/FieldRef.h>
Public Member Functions | |
bool | CanWorkAsMergeField () override |
String | get_BookmarkName () |
Gets or sets the referenced bookmark's name. More... | |
SharedPtr< FieldEnd > | get_End () override |
Gets the node that represents the field end. More... | |
bool | get_IncludeNoteOrComment () |
Gets or sets whether to increment footnote, endnote, and annotation numbers that are marked by the bookmark, and insert the corresponding footnote, endnote, and comment text. More... | |
bool | get_InsertHyperlink () |
Gets or sets whether to create a hyperlink to the bookmarked paragraph. More... | |
bool | get_InsertParagraphNumber () |
Gets or sets whether to insert the paragraph number of the referenced paragraph exactly as it appears in the document. More... | |
bool | get_InsertParagraphNumberInFullContext () |
Gets or sets whether to insert the paragraph number of the referenced paragraph in full context. More... | |
bool | get_InsertParagraphNumberInRelativeContext () |
Gets or sets whether to insert the paragraph number of the referenced paragraph in relative context. More... | |
bool | get_InsertRelativePosition () |
Gets or sets whether to insert the relative position of the referenced paragraph. More... | |
String | get_NumberSeparator () |
Gets or sets the character sequence that is used to separate sequence numbers and page numbers. More... | |
SharedPtr< FieldSeparator > | get_Separator () override |
Gets the node that represents the field separator. Can be null. More... | |
SharedPtr< FieldStart > | get_Start () override |
Gets the node that represents the start of the field. More... | |
bool | get_SuppressNonDelimiters () |
Gets or sets whether to suppress non-delimiter characters. More... | |
String | GetMergeFieldName () override |
FieldSwitchType | GetSwitchType (String switchName) override |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
bool | IsMergeValueRequired () override |
void | set_BookmarkName (String value) |
Setter for get_BookmarkName. More... | |
void | set_IncludeNoteOrComment (bool value) |
Setter for get_IncludeNoteOrComment. More... | |
void | set_InsertHyperlink (bool value) |
Setter for get_InsertHyperlink. More... | |
void | set_InsertParagraphNumber (bool value) |
Setter for get_InsertParagraphNumber. More... | |
void | set_InsertParagraphNumberInFullContext (bool value) |
Setter for get_InsertParagraphNumberInFullContext. More... | |
void | set_InsertParagraphNumberInRelativeContext (bool value) |
Setter for get_InsertParagraphNumberInRelativeContext. More... | |
void | set_InsertRelativePosition (bool value) |
Setter for get_InsertRelativePosition. More... | |
void | set_NumberSeparator (String value) |
Setter for get_NumberSeparator. More... | |
void | set_SuppressNonDelimiters (bool value) |
Setter for get_SuppressNonDelimiters. More... | |
![]() | |
String | get_DisplayResult () |
Gets the text that represents the displayed field result. More... | |
SharedPtr< FieldEnd > | get_End () const |
Gets the node that represents the field end. More... | |
SharedPtr< FieldEnd > | get_FieldEnd () const |
Gets the node that represents the field end. More... | |
SharedPtr< FieldStart > | get_FieldStart () const |
Gets the node that represents the start of the field. More... | |
SharedPtr< FieldFormat > | get_Format () |
Gets a FieldFormat object that provides typed access to field's formatting. More... | |
bool | get_IsDirty () |
Gets or sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document. More... | |
bool | get_IsLocked () |
Gets or sets whether the field is locked (should not recalculate its result). More... | |
int32_t | get_LocaleId () |
Gets or sets the LCID of the field. More... | |
String | get_Result () |
Gets or sets text that is between the field separator and field end. More... | |
SharedPtr< FieldSeparator > | get_Separator () |
Gets the node that represents the field separator. Can be null. More... | |
SharedPtr< FieldStart > | get_Start () const |
Gets the node that represents the start of the field. More... | |
virtual FieldType | get_Type () |
Gets the Microsoft Word field type. More... | |
String | GetFieldCode () |
Returns text between field start and field separator (or field end if there is no separator). Both field code and field result of child fields are included. More... | |
String | GetFieldCode (bool includeChildFieldCodes) |
Returns text between field start and field separator (or field end if there is no separator). More... | |
SharedPtr< Node > | Remove () |
Removes the field from the document. Returns a node right after the field. If the field's end is the last child of its parent node, returns its parent paragraph. If the field is already removed, returns null. More... | |
void | set_IsDirty (bool value) |
Setter for get_IsDirty. More... | |
void | set_IsLocked (bool value) |
Setter for get_IsLocked. More... | |
void | set_LocaleId (int32_t value) |
Setter for get_LocaleId. More... | |
void | set_Result (String value) |
Setter for get_Result. More... | |
bool | Unlink () |
Performs the field unlink. More... | |
void | Update () |
Performs the field update. Throws if the field is being updated already. More... | |
void | Update (bool ignoreMergeFormat) |
Performs a field update. Throws if the field is being updated already. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
|
override |
System::String Aspose::Words::Fields::FieldRef::get_BookmarkName | ( | ) |
Gets or sets the referenced bookmark's name.
Shows how to insert REF fields to reference bookmarks.
Shows how to create bookmarked text with a SET field, and then display it in the document using a REF field.
|
override |
Gets the node that represents the field end.
bool Aspose::Words::Fields::FieldRef::get_IncludeNoteOrComment | ( | ) |
Gets or sets whether to increment footnote, endnote, and annotation numbers that are marked by the bookmark, and insert the corresponding footnote, endnote, and comment text.
Shows how to insert REF fields to reference bookmarks.
bool Aspose::Words::Fields::FieldRef::get_InsertHyperlink | ( | ) |
Gets or sets whether to create a hyperlink to the bookmarked paragraph.
Shows how to insert REF fields to reference bookmarks.
bool Aspose::Words::Fields::FieldRef::get_InsertParagraphNumber | ( | ) |
Gets or sets whether to insert the paragraph number of the referenced paragraph exactly as it appears in the document.
Shows how to insert REF fields to reference bookmarks.
bool Aspose::Words::Fields::FieldRef::get_InsertParagraphNumberInFullContext | ( | ) |
Gets or sets whether to insert the paragraph number of the referenced paragraph in full context.
Shows how to insert REF fields to reference bookmarks.
bool Aspose::Words::Fields::FieldRef::get_InsertParagraphNumberInRelativeContext | ( | ) |
Gets or sets whether to insert the paragraph number of the referenced paragraph in relative context.
Shows how to insert REF fields to reference bookmarks.
bool Aspose::Words::Fields::FieldRef::get_InsertRelativePosition | ( | ) |
Gets or sets whether to insert the relative position of the referenced paragraph.
Shows how to insert REF fields to reference bookmarks.
System::String Aspose::Words::Fields::FieldRef::get_NumberSeparator | ( | ) |
Gets or sets the character sequence that is used to separate sequence numbers and page numbers.
Shows how to insert REF fields to reference bookmarks.
|
override |
Gets the node that represents the field separator. Can be null.
|
override |
Gets the node that represents the start of the field.
bool Aspose::Words::Fields::FieldRef::get_SuppressNonDelimiters | ( | ) |
Gets or sets whether to suppress non-delimiter characters.
Shows how to insert REF fields to reference bookmarks.
|
override |
|
override |
|
overridevirtual |
Reimplemented from Aspose::Words::Fields::Field.
|
overridevirtual |
Reimplemented from Aspose::Words::Fields::Field.
|
override |
void Aspose::Words::Fields::FieldRef::set_BookmarkName | ( | System::String | value | ) |
void Aspose::Words::Fields::FieldRef::set_IncludeNoteOrComment | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_InsertHyperlink | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_InsertParagraphNumber | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_InsertParagraphNumberInFullContext | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_InsertParagraphNumberInRelativeContext | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_InsertRelativePosition | ( | bool | value | ) |
void Aspose::Words::Fields::FieldRef::set_NumberSeparator | ( | System::String | value | ) |
void Aspose::Words::Fields::FieldRef::set_SuppressNonDelimiters | ( | bool | value | ) |
|
static |