Builds a field from field code tokens (arguments and switches).
Shows how to construct fields using a field builder, and then insert them into the document.
#include <Aspose.Words.Cpp/Fields/FieldBuilder.h>
Public Member Functions | |
FieldBuilder (FieldType fieldType) | |
Initializes an instance of the FieldBuilder class. More... | |
SharedPtr< FieldBuilder > | AddArgument (double argument) |
Adds a field's argument. More... | |
SharedPtr< FieldBuilder > | AddArgument (int32_t argument) |
Adds a field's argument. More... | |
SharedPtr< FieldBuilder > | AddArgument (SharedPtr< FieldArgumentBuilder > argument) |
Adds a field's argument represented by FieldArgumentBuilder to the field's code. More... | |
SharedPtr< FieldBuilder > | AddArgument (SharedPtr< FieldBuilder > argument) |
Adds a child field represented by another FieldBuilder to the field's code. More... | |
SharedPtr< FieldBuilder > | AddArgument (String argument) |
Adds a field's argument. More... | |
SharedPtr< FieldBuilder > | AddSwitch (String switchName) |
Adds a field's switch. More... | |
SharedPtr< FieldBuilder > | AddSwitch (String switchName, double switchArgument) |
Adds a field's switch. More... | |
SharedPtr< FieldBuilder > | AddSwitch (String switchName, int32_t switchArgument) |
Adds a field's switch. More... | |
SharedPtr< FieldBuilder > | AddSwitch (String switchName, String switchArgument) |
Adds a field's switch. More... | |
SharedPtr< Field > | BuildAndInsert (SharedPtr< Inline > refNode) |
Builds and inserts a field into the document before the specified inline node. More... | |
SharedPtr< Field > | BuildAndInsert (SharedPtr< Paragraph > refNode) |
Builds and inserts a field into the document to the end of the specified paragraph. More... | |
void | BuildBlock (SharedPtr< DocumentBuilder > documentBuilder) override |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
Static Public Member Functions | |
static const TypeInfo & | Type () |
Aspose::Words::Fields::FieldBuilder::FieldBuilder | ( | Aspose::Words::Fields::FieldType | fieldType | ) |
Initializes an instance of the FieldBuilder class.
fieldType | The type of the field to build. |
Shows how to create and insert a field using a field builder.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddArgument | ( | double | argument | ) |
Adds a field's argument.
argument | The argument value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddArgument | ( | int32_t | argument | ) |
Adds a field's argument.
argument | The argument value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddArgument | ( | System::SharedPtr< Aspose::Words::Fields::FieldArgumentBuilder > | argument | ) |
Adds a field's argument represented by FieldArgumentBuilder to the field's code.
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddArgument | ( | System::SharedPtr< Aspose::Words::Fields::FieldBuilder > | argument | ) |
Adds a child field represented by another FieldBuilder to the field's code.
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddArgument | ( | System::String | argument | ) |
Adds a field's argument.
argument | The argument value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddSwitch | ( | System::String | switchName | ) |
Adds a field's switch.
switchName | The switch name. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddSwitch | ( | System::String | switchName, |
double | switchArgument | ||
) |
Adds a field's switch.
switchName | The switch name. |
switchArgument | The switch value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddSwitch | ( | System::String | switchName, |
int32_t | switchArgument | ||
) |
Adds a field's switch.
switchName | The switch name. |
switchArgument | The switch value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::FieldBuilder> Aspose::Words::Fields::FieldBuilder::AddSwitch | ( | System::String | switchName, |
System::String | switchArgument | ||
) |
Adds a field's switch.
switchName | The switch name. |
switchArgument | The switch value. |
Shows how to construct fields using a field builder, and then insert them into the document.
System::SharedPtr<Aspose::Words::Fields::Field> Aspose::Words::Fields::FieldBuilder::BuildAndInsert | ( | System::SharedPtr< Aspose::Words::Inline > | refNode | ) |
Builds and inserts a field into the document before the specified inline node.
Shows how to create and insert a field using a field builder.
System::SharedPtr<Aspose::Words::Fields::Field> Aspose::Words::Fields::FieldBuilder::BuildAndInsert | ( | System::SharedPtr< Aspose::Words::Paragraph > | refNode | ) |
Builds and inserts a field into the document to the end of the specified paragraph.
Shows how to construct fields using a field builder, and then insert them into the document.
|
override |
|
overridevirtual |
|
overridevirtual |
|
static |