SpellCheck
IBasePortionFormat.SpellCheck property
Gets or sets 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.
public bool SpellCheck { get; set; }
Examples
Next example demonstrates enabling the SpellCheck flag before saving the presentation:
[C#]
using (var pres = new Presentation("input.pptx"))
{
// Access the first portion of text inside the first shape on the first slide
var portion = ((AutoShape)pres.Slides[0].Shapes[0]).TextFrame.Paragraphs[0].Portions[0];
// Enable spell checking for this text portion
portion.PortionFormat.SpellCheck = true;
// Save the modified presentation
pres.Save("output-with-spellcheck.pptx", SaveFormat.Pptx);
}
See Also
- interface IBasePortionFormat
- namespace Aspose.Slides
- assembly Aspose.Slides