Aspose::Words::Font::set_Italic method

Font::set_Italic method

True if the font is formatted as italic.

void Aspose::Words::Font::set_Italic(bool value)

Examples

Shows how to write italicized text using a document builder.

auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

builder->get_Font()->set_Size(36);
builder->get_Font()->set_Italic(true);
builder->Writeln(u"Hello world!");

doc->Save(get_ArtifactsDir() + u"Font.Italic.docx");

See Also