System::SharedPtr project = System::MakeObject(dataDir + u"CreateProject2.mpp"); System::SharedPtr options = System::MakeObject(); options->set_PresentationFormat(Aspose::Tasks::Visualization::PresentationFormat::ResourceSheet); System::SharedPtr style = System::MakeObject(); style->set_Color(System::Drawing::Color::get_OrangeRed()); style->set_FontStyle(System::Drawing::FontStyle::Bold); System::setter_or_wrap(style.GetPointer(), &TextStyle::get_FontStyle, &TextStyle::set_FontStyle, System::Drawing::FontStyle::Italic); style->set_ItemType(Aspose::Tasks::Visualization::TextItemType::OverallocatedResources); options->set_TextStyles(System::MakeObject>>()); options->get_TextStyles()->Add(style); project->Save(dataDir + u"CustomizeTextStyle_out.pdf", options);