Detailed Description

Represents a container for text of a footnote or endnote.

The Footnote class is used to represent both footnotes and endnotes in a Word document.

Footnote is an inline-level node and can only be a child of Paragraph.

Footnote can contain Paragraph and Table child nodes.

See also
Aspose::Words::Footnote::get_FootnoteType
Aspose::Words::DocumentBuilder::InsertFootnote(Aspose::Words::FootnoteType, System::String)
Aspose::Words::FootnoteOptions
Aspose::Words::EndnoteOptions
Examples

Shows how to add a footnote to a paragraph in the document and set its marker.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Add text that will be referenced by a footnote
builder->Write(u"Main body text.");
// Add a footnote and give it text, which will appear at the bottom of the page
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// This attribute means the footnote in the main text will automatically be assigned a number, "1" in this instance
// The next footnote will get "2"
ASSERT_TRUE(footnote->get_IsAuto());
// We can edit the footnote's text like this
// Make sure to move the builder back into the document body afterwards
builder->MoveTo(footnote->get_FirstParagraph());
builder->Write(u" More text added by a DocumentBuilder.");
builder->MoveToDocumentEnd();
ASSERT_EQ(u"Footnote text. More text added by a DocumentBuilder.", footnote->get_Paragraphs()->idx_get(0)->ToString(Aspose::Words::SaveFormat::Text).Trim());
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// Substitute the reference number for our own custom mark by setting this variable, "IsAuto" will also be set to false
footnote->set_ReferenceMark(u"RefMark");
ASSERT_FALSE(footnote->get_IsAuto());
// This bookmark will get a number "3" even though there was no "2"
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
ASSERT_TRUE(footnote->get_IsAuto());
doc->Save(ArtifactsDir + u"InlineStory.AddFootnote.docx");

#include <Aspose.Words.Cpp/Model/Footnotes/Footnote.h>

+ Inheritance diagram for Aspose::Words::Footnote:

Public Member Functions

 Footnote (SharedPtr< DocumentBase > doc, FootnoteType footnoteType)
 Initializes an instance of the Footnote class. More...
 
bool Accept (SharedPtr< DocumentVisitor > visitor) override
 Accepts a visitor. More...
 
FootnoteType get_FootnoteType () const
 Returns a value that specifies whether this is a footnote or endnote. More...
 
bool get_IsAuto () const
 Holds a value that specifies whether this is a auto-numbered footnote or footnote with user defined custom reference mark. More...
 
NodeType get_NodeType () const override
 Returns NodeType.Footnote. More...
 
String get_ReferenceMark () const
 Gets/sets custom reference mark to be used for this footnote. Default value is empty string (Empty), meaning auto-numbered footnotes are used. More...
 
StoryType get_StoryType () override
 Returns StoryType.Footnotes or StoryType.Endnotes. More...
 
virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 
void set_IsAuto (bool value)
 Setter for get_IsAuto. More...
 
void set_ReferenceMark (String value)
 Setter for get_ReferenceMark. More...
 
- Public Member Functions inherited from InlineStory
void EnsureMinimum ()
 If the last child is not a paragraph, creates and appends one empty paragraph. More...
 
SharedPtr< Paragraphget_FirstParagraph ()
 Gets the first paragraph in the story. More...
 
SharedPtr< Fontget_Font ()
 Provides access to the font formatting of the anchor character of this object. More...
 
bool get_IsDeleteRevision ()
 Returns true if this object was deleted in Microsoft Word while change tracking was enabled. More...
 
bool get_IsInsertRevision ()
 Returns true if this object was inserted in Microsoft Word while change tracking was enabled. More...
 
bool get_IsMoveFromRevision ()
 Returns true if this object was moved (deleted) in Microsoft Word while change tracking was enabled. More...
 
bool get_IsMoveToRevision ()
 Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled. More...
 
SharedPtr< Paragraphget_LastParagraph ()
 Gets the last paragraph in the story. More...
 
SharedPtr< ParagraphCollectionget_Paragraphs ()
 Gets a collection of paragraphs that are immediate children of the story. More...
 
SharedPtr< Paragraphget_ParentParagraph ()
 Retrieves the parent Paragraph of this node. More...
 
SharedPtr< TableCollectionget_Tables ()
 Gets a collection of tables that are immediate children of the story. More...
 
- Public Member Functions inherited from CompositeNode
SharedPtr< NodeAppendChild (SharedPtr< Node > newChild)
 Adds the specified node to the end of the list of child nodes for this node. More...
 
SharedPtr< NodeCollectionget_ChildNodes ()
 Gets all immediate child nodes of this node. More...
 
SharedPtr< CompositeNodeget_Container () override
 
int32_t get_Count ()
 Gets the number of immediate children of this node. More...
 
SharedPtr< Nodeget_FirstChild () const
 Gets the first child of the node. More...
 
bool get_HasChildNodes ()
 Returns true if this node has any child nodes. More...
 
bool get_IsComposite () override
 Returns true as this node can have child nodes. More...
 
SharedPtr< Nodeget_LastChild () const
 Gets the last child of the node. More...
 
SharedPtr< NodeGetChild (NodeType nodeType, int32_t index, bool isDeep)
 Returns an Nth child node that matches the specified type. More...
 
SharedPtr< NodeCollectionGetChildNodes (NodeType nodeType, bool isDeep)
 Returns a live collection of child nodes that match the specified type. More...
 
SharedPtr< NodeGetCurrentNode () override
 
SharedPtr< IEnumerator< SharedPtr< Node > > > GetEnumerator () override
 Provides support for the for each style iteration over the child nodes of this node. More...
 
SharedPtr< NodeGetNextMatchingNode (SharedPtr< Node > curNode) override
 
String GetText () override
 Gets the text of this node and of all its children. More...
 
int32_t IndexOf (SharedPtr< Node > child)
 Returns the index of the specified child node in the child node array. More...
 
SharedPtr< NodeInsertAfter (SharedPtr< Node > newChild, SharedPtr< Node > refChild)
 Inserts the specified node immediately after the specified reference node. More...
 
SharedPtr< NodeInsertBefore (SharedPtr< Node > newChild, SharedPtr< Node > refChild)
 Inserts the specified node immediately before the specified reference node. More...
 
SharedPtr< NodePrependChild (SharedPtr< Node > newChild)
 Adds the specified node to the beginning of the list of child nodes for this node. More...
 
void RemoveAllChildren ()
 Removes all the child nodes of the current node. More...
 
SharedPtr< NodeRemoveChild (SharedPtr< Node > oldChild)
 Removes the specified child node. More...
 
void RemoveSmartTags ()
 Removes all SmartTag descendant nodes of the current node. More...
 
SharedPtr< NodeListSelectNodes (String xpath)
 Selects a list of nodes matching the XPath expression. More...
 
SharedPtr< NodeSelectSingleNode (String xpath)
 Selects the first Node that matches the XPath expression. More...
 
- Public Member Functions inherited from Node
SharedPtr< NodeClone (bool isCloneChildren)
 Creates a duplicate of the node. More...
 
virtual SharedPtr< DocumentBaseget_Document () const
 Gets the document to which this node belongs. More...
 
SharedPtr< Nodeget_NextSibling ()
 Gets the node immediately following this node. More...
 
SharedPtr< CompositeNodeget_ParentNode ()
 Gets the immediate parent of this node. More...
 
SharedPtr< Nodeget_PreviousSibling ()
 Gets the node immediately preceding this node. More...
 
SharedPtr< Rangeget_Range ()
 Returns a Range object that represents the portion of a document that is contained in this node. More...
 
SharedPtr< CompositeNodeGetAncestor (NodeType ancestorType)
 Gets the first ancestor of the specified NodeType. More...
 
template<typename T >
GetAncestorOf ()
 
SharedPtr< NodeNextPreOrder (SharedPtr< Node > rootNode)
 Gets next node according to the pre-order tree traversal algorithm. More...
 
SharedPtr< NodePreviousPreOrder (SharedPtr< Node > rootNode)
 Gets the previous node according to the pre-order tree traversal algorithm. More...
 
void Remove ()
 Removes itself from the parent. More...
 
String ToString (SaveFormat saveFormat)
 Exports the content of the node into a string in the specified format. More...
 
String ToString (SharedPtr< SaveOptions > saveOptions)
 Exports the content of the node into a string using the specified save options. 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
 
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 ()
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Words::Node > >
EnumeratorBasedIterator< T, IEnumerator< T > > begin () noexcept
 
EnumeratorBasedIterator< T, IEnumerator< T > > cbegin () noexcept
 
EnumeratorBasedIterator< T, IEnumerator< T > > cend () noexcept
 
EnumeratorBasedIterator< T, IEnumerator< T > > end () noexcept
 
bool LINQ_All (std::function< bool(T)> predicate)
 
bool LINQ_Any ()
 
bool LINQ_Any (std::function< bool(T)> predicate)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
bool LINQ_Contains (T value)
 
int LINQ_Count ()
 
int LINQ_Count (const Func< T, bool > &predicate)
 
LINQ_ElementAt (int index)
 
LINQ_First ()
 
LINQ_First (const Func< T, bool > &predicate)
 
LINQ_FirstOrDefault ()
 
LINQ_FirstOrDefault (std::function< bool(T)> predicate)
 
LINQ_Last ()
 
LINQ_LastOrDefault ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< Source > > LINQ_OrderBy (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< T > > LINQ_OrderBy (const Func< T, Key > &keySelector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< T, ResultType > &selector)
 
ArrayPtr< T > LINQ_ToArray ()
 
SharedPtr< List< T > > LINQ_ToList ()
 
SharedPtr< IEnumerable< T > > LINQ_Where (std::function< bool(T)> predicate)
 

Static Public Member Functions

static const TypeInfoType ()
 
- Static Public Member Functions inherited from InlineStory
static const TypeInfoType ()
 
- Static Public Member Functions inherited from CompositeNode
static const TypeInfoType ()
 
- Static Public Member Functions inherited from Node
static String NodeTypeToString (NodeType nodeType)
 A utility method that converts a node type enum value into a user friendly string. More...
 
static const TypeInfoType ()
 
- 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 ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 
- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Words::Node > >
typedef IEnumerator< T > IEnumeratorType
 
typedef T ValueType
 

Constructor & Destructor Documentation

◆ Footnote()

Aspose::Words::Footnote::Footnote ( System::SharedPtr< Aspose::Words::DocumentBase doc,
Aspose::Words::FootnoteType  footnoteType 
)

Initializes an instance of the Footnote class.

When Footnote is created, it belongs to the specified document, but is not yet part of the document and ParentNode is null.

To append Footnote to the document use InsertAfter or InsertBefore on the paragraph where you want the footnote inserted.

Parameters
docThe owner document.
footnoteTypeA FootnoteType value that specifies whether this is a footnote or endnote.
Examples

Shows how to add a footnote to a paragraph in the document and set its marker.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Add text that will be referenced by a footnote
builder->Write(u"Main body text.");
// Add a footnote and give it text, which will appear at the bottom of the page
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// This attribute means the footnote in the main text will automatically be assigned a number, "1" in this instance
// The next footnote will get "2"
ASSERT_TRUE(footnote->get_IsAuto());
// We can edit the footnote's text like this
// Make sure to move the builder back into the document body afterwards
builder->MoveTo(footnote->get_FirstParagraph());
builder->Write(u" More text added by a DocumentBuilder.");
builder->MoveToDocumentEnd();
ASSERT_EQ(u"Footnote text. More text added by a DocumentBuilder.", footnote->get_Paragraphs()->idx_get(0)->ToString(Aspose::Words::SaveFormat::Text).Trim());
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// Substitute the reference number for our own custom mark by setting this variable, "IsAuto" will also be set to false
footnote->set_ReferenceMark(u"RefMark");
ASSERT_FALSE(footnote->get_IsAuto());
// This bookmark will get a number "3" even though there was no "2"
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
ASSERT_TRUE(footnote->get_IsAuto());
doc->Save(ArtifactsDir + u"InlineStory.AddFootnote.docx");

Member Function Documentation

◆ Accept()

bool Aspose::Words::Footnote::Accept ( System::SharedPtr< Aspose::Words::DocumentVisitor visitor)
overridevirtual

Accepts a visitor.

Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.

For more info see the Visitor design pattern.

Parameters
visitorThe visitor that will visit the nodes.
Returns
True if all nodes were visited; false if DocumentVisitor stopped the operation before visiting all nodes.

Implements Aspose::Words::Node.

◆ get_FootnoteType()

Aspose::Words::FootnoteType Aspose::Words::Footnote::get_FootnoteType ( ) const

Returns a value that specifies whether this is a footnote or endnote.

Examples

Demonstrates the difference between footnotes and endnotes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Write text and insert a footnote to reference it at the bottom of the page
builder->Write(u"Footnote referenced main body text.");
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text, will appear at the bottom of the page that contains the referenced text.");
// Write text and insert an endnote to reference it at the end of the document
builder->Write(u"Endnote referenced main body text.");
SharedPtr<Footnote> endnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Endnote, u"Endnote text, will appear at the very end of the document.");
// Since endnotes are at the end of the document, breaks like this will push them down while the footnotes stay where they are
ASSERT_EQ(Aspose::Words::FootnoteType::Footnote, footnote->get_FootnoteType());
ASSERT_EQ(Aspose::Words::FootnoteType::Endnote, endnote->get_FootnoteType());
doc->Save(ArtifactsDir + u"InlineStory.FootnoteEndnote.docx");

◆ get_IsAuto()

bool Aspose::Words::Footnote::get_IsAuto ( ) const

Holds a value that specifies whether this is a auto-numbered footnote or footnote with user defined custom reference mark.

Examples

Shows how to add a footnote to a paragraph in the document and set its marker.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Add text that will be referenced by a footnote
builder->Write(u"Main body text.");
// Add a footnote and give it text, which will appear at the bottom of the page
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// This attribute means the footnote in the main text will automatically be assigned a number, "1" in this instance
// The next footnote will get "2"
ASSERT_TRUE(footnote->get_IsAuto());
// We can edit the footnote's text like this
// Make sure to move the builder back into the document body afterwards
builder->MoveTo(footnote->get_FirstParagraph());
builder->Write(u" More text added by a DocumentBuilder.");
builder->MoveToDocumentEnd();
ASSERT_EQ(u"Footnote text. More text added by a DocumentBuilder.", footnote->get_Paragraphs()->idx_get(0)->ToString(Aspose::Words::SaveFormat::Text).Trim());
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// Substitute the reference number for our own custom mark by setting this variable, "IsAuto" will also be set to false
footnote->set_ReferenceMark(u"RefMark");
ASSERT_FALSE(footnote->get_IsAuto());
// This bookmark will get a number "3" even though there was no "2"
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
ASSERT_TRUE(footnote->get_IsAuto());
doc->Save(ArtifactsDir + u"InlineStory.AddFootnote.docx");

◆ get_NodeType()

Aspose::Words::NodeType Aspose::Words::Footnote::get_NodeType ( ) const
overridevirtual

Returns NodeType.Footnote.

Implements Aspose::Words::Node.

◆ get_ReferenceMark()

System::String Aspose::Words::Footnote::get_ReferenceMark ( ) const

Gets/sets custom reference mark to be used for this footnote. Default value is empty string (Empty), meaning auto-numbered footnotes are used.

If this property is set to empty string (Empty) or null, then IsAuto property will automatically be set to true, if set to anything else then IsAuto will be set to false.

RTF-format can only store 1 symbol as custom reference mark, so upon export only the first symbol will be written others will be discard.

Examples

Shows how to add a footnote to a paragraph in the document and set its marker.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
// Add text that will be referenced by a footnote
builder->Write(u"Main body text.");
// Add a footnote and give it text, which will appear at the bottom of the page
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// This attribute means the footnote in the main text will automatically be assigned a number, "1" in this instance
// The next footnote will get "2"
ASSERT_TRUE(footnote->get_IsAuto());
// We can edit the footnote's text like this
// Make sure to move the builder back into the document body afterwards
builder->MoveTo(footnote->get_FirstParagraph());
builder->Write(u" More text added by a DocumentBuilder.");
builder->MoveToDocumentEnd();
ASSERT_EQ(u"Footnote text. More text added by a DocumentBuilder.", footnote->get_Paragraphs()->idx_get(0)->ToString(Aspose::Words::SaveFormat::Text).Trim());
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
// Substitute the reference number for our own custom mark by setting this variable, "IsAuto" will also be set to false
footnote->set_ReferenceMark(u"RefMark");
ASSERT_FALSE(footnote->get_IsAuto());
// This bookmark will get a number "3" even though there was no "2"
builder->Write(u" More main body text.");
footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, u"Footnote text.");
ASSERT_TRUE(footnote->get_IsAuto());
doc->Save(ArtifactsDir + u"InlineStory.AddFootnote.docx");

◆ get_StoryType()

Aspose::Words::StoryType Aspose::Words::Footnote::get_StoryType ( )
overridevirtual

Returns StoryType.Footnotes or StoryType.Endnotes.

Examples

Shows how to insert InlineStory nodes.

auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
SharedPtr<Footnote> footnote = builder->InsertFootnote(Aspose::Words::FootnoteType::Footnote, nullptr);
// Table nodes have an "EnsureMinimum()" method that makes sure the table has at least one cell
auto table = MakeObject<Table>(doc);
table->EnsureMinimum();
// We can place a table inside a footnote, which will make it appear at the footer of the referencing page
ASSERT_TRUE(footnote->get_Tables()->get_Count() == 0);
footnote->AppendChild(table);
ASSERT_EQ(1, footnote->get_Tables()->get_Count());
ASSERT_EQ(Aspose::Words::NodeType::Table, footnote->get_LastChild()->get_NodeType());
// An InlineStory has an "EnsureMinimum()" method as well, but in this case it makes sure the last child of the node is a paragraph,
// so we can click and write text easily in Microsoft Word
footnote->EnsureMinimum();
ASSERT_EQ(Aspose::Words::NodeType::Paragraph, footnote->get_LastChild()->get_NodeType());
// Edit the appearance of the anchor, which is the small superscript number in the main text that points to the footnote
footnote->get_Font()->set_Name(u"Arial");
footnote->get_Font()->set_Color(System::Drawing::Color::get_Green());
// All inline story nodes have their own respective story types
ASSERT_EQ(Aspose::Words::StoryType::Footnotes, footnote->get_StoryType());
// A comment is another type of inline story
auto comment = System::DynamicCast<Aspose::Words::Comment>(builder->get_CurrentParagraph()->AppendChild(MakeObject<Comment>(doc, u"John Doe", u"J. D.", System::DateTime::get_Now())));
// The parent paragraph of an inline story node will be the one from the main document body
ASPOSE_ASSERT_EQ(doc->get_FirstSection()->get_Body()->get_FirstParagraph(), comment->get_ParentParagraph());
// However, the last paragraph is the one from the comment text contents, which will be outside the main document body in a speech bubble
// A comment won't have any child nodes by default, so we can apply the EnsureMinimum() method to place a paragraph here as well
ASSERT_TRUE(comment->get_LastParagraph() == nullptr);
comment->EnsureMinimum();
ASSERT_EQ(Aspose::Words::NodeType::Paragraph, comment->get_LastChild()->get_NodeType());
// Once we have a paragraph, we can move the builder do it and write our comment
builder->MoveTo(comment->get_LastParagraph());
builder->Write(u"My comment.");
ASSERT_EQ(Aspose::Words::StoryType::Comments, comment->get_StoryType());
doc->Save(ArtifactsDir + u"InlineStory.InsertInlineStoryNodes.docx");

Implements Aspose::Words::InlineStory.

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::Footnote::GetType ( ) const
overridevirtual

Reimplemented from Aspose::Words::InlineStory.

◆ Is()

virtual bool Aspose::Words::Footnote::Is ( const System::TypeInfo target) const
overridevirtual

Reimplemented from Aspose::Words::InlineStory.

◆ set_IsAuto()

void Aspose::Words::Footnote::set_IsAuto ( bool  value)

◆ set_ReferenceMark()

void Aspose::Words::Footnote::set_ReferenceMark ( System::String  value)

◆ Type()

static const System::TypeInfo& Aspose::Words::Footnote::Type ( )
static
static ASPOSECPP_SHARED_API DateTime get_Now()
@ Text
Saves the document in the plain text format.
@ Comments
Contains document comments (annotations), represented by Comment.
static ASPOSECPP_SHARED_API Color get_Green()
@ Footnotes
Contains footnote text, represented by Footnote.
@ Endnote
The object is an endnote.
@ Footnote
The object is a footnote.
@ Paragraph
A paragraph of text. A Paragraph node is a container for inline level elements Run,...
@ Table
A Table object that represents a table in a Word document. A Table node can have Row nodes.
@ SectionBreakNewPage
Specifies start of new section on a new page.