NotesSlide.TextArea Property
Obtains the note text box. Allows you to specify note text and format settings.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.2.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Property Value
| Type | Description |
|---|---|
| TextArea | An object that contains text settings. |
Example
How to: Specify Note Settings
The following code snippet obtains and changes note settings:
using DevExpress.Docs;
using DevExpress.Docs.Presentation;
using System.Drawing;
//...
using (var presentation = new Presentation(File.ReadAllBytes(@"C:\Documents\Presentation.pptx"))) {
Slide slide = presentation.Slides[0];
var note = slide.Notes;
note.TextArea.Text = "updated text";
// Create paragraph properties
ParagraphProperties textParagraphProperties = new ParagraphProperties() {
TextProperties = new TextProperties() { HighlightColor = new OfficeColor(Color.Red) }
};
// Apply text properties to the note
note.TextArea.ParagraphProperties = textParagraphProperties;
note.TextArea.Level1ParagraphProperties = textParagraphProperties;
presentation.SaveDocument(new FileStream("C://Documents//presentation_updated.pptx", FileMode.OpenOrCreate, FileAccess.ReadWrite));
}
See Also