get_SpellCheck()
Contents
[
Hide
]BasePortionFormat::get_SpellCheck() method
Gets a value indicating whether spell checking is enabled for the text portion. When this property is set to false, spelling checks for text elements are suppressed. When set to true, spell checking is allowed. Default value is false.
bool Aspose::Slides::BasePortionFormat::get_SpellCheck() override
Remarks
Next example demonstrates enabling the SpellCheck flag before saving the presentation:
auto pres = System::MakeObject<Presentation>(u"input.pptx");
// Access the first portion of text inside the first shape on the first slide
auto portion = (System::ExplicitCast<AutoShape>(pres->get_Slide(0)->get_Shape(0)))->get_TextFrame()->get_Paragraph(0)->get_Portion(0);
// Enable spell checking for this text portion
portion->get_PortionFormat()->set_SpellCheck(true);
// Save the modified presentation
pres->Save(u"output-with-spellcheck.pptx", SaveFormat::Pptx);
See Also
- Class BasePortionFormat
- Namespace Aspose::Slides
- Library Aspose.Slides