Hi,
In order to create a multiline caption, add a line to manually set the caption in your code. In the line add line feed characters, and the lines will be seperated. For example:
xyPointAnnotation1.Caption = "This is on the first line\nThis is on the second line";
Your annotation caption will appear as:
This is on the first line
This is on the second line
Apparentley, when you try to set this property in the Form view, the line feed characters are included in the text. So if I go to my user interface view, and set the Caption property of the annotation object to the above line, it will show up as:
This is on the first line\nThis is on the second line
In order to set the background color of the Caption, there is a property for the annotation object called "CaptionBackColor".
Good luck!
Tyler T.
Applications Engineer
National Instruments