Code: Select all
Annot.GetTextFormat(0)
Code: Select all
Annot.ISetTextFormat(i, True, swTextFormat)
How does one control the format of multi-line notes? GetTextFormat and SetTextFormat only seem to look at the first line of the note.
Code: Select all
Annot.GetTextFormat(0)
Code: Select all
Annot.ISetTextFormat(i, True, swTextFormat)
Thanks, SPerman. I didn't think about paragraphs. It's a bit unclear to me where the separation between 'notes' and 'paragraphs' is.SPerman wrote: ↑Tue Oct 29, 2024 7:41 am You could try treating the multi-line note as a paragraph.
Get and Set Paragraph Properties Example (VBA)
The argument for [Get/Set]TextFormat does not refer to the line. It refers to the piece of text. A multi-line note still only has one piece of text. From the Help for GetTextFormatCount: