Currency Symbols
Managing Currency Symbols
The CurrencySymbol property exposed by the Project class is used to set or get the currency symbol. This property supports the string data type.
To see a project’s currency symbol in Microsoft Project:
- From the Tools menu, select Options.
- Select the View tab.
Viewing the currency symbol in Microsoft Project
Setting Currency Symbol using Aspose.Tasks
The following code example demonstrates how to set a currency symbol for a project.
1// Create new project and set currency symbol
2System::SharedPtr<Project> project1 = System::MakeObject<Project>();
3project1->Set<System::String>(Prj::CurrencySymbol(), u"$$");
Getting the Currency Symbol using Aspose.Tasks
Access the currency symbol using a project’s CurrencySymbol:
1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"project.mpp");
2System::Console::WriteLine(project1->Get<System::String>(Prj::CurrencySymbol()));