Hide Table of Contents
AddTo Method (IBalloonStack)

Adds a balloon note to this balloon stack.

.NET Syntax

Visual Basic (Declaration) 
Function AddTo( _
   ByVal UpperTextStyle As System.Integer, _
   ByVal UpperText As System.String, _
   ByVal LowerTextStyle As System.Integer, _
   ByVal LowerText As System.String _
) As Note
Visual Basic (Usage) 
Dim instance As IBalloonStack
Dim UpperTextStyle As System.Integer
Dim UpperText As System.String
Dim LowerTextStyle As System.Integer
Dim LowerText As System.String
Dim value As Note
value = instance.AddTo(UpperTextStyle, UpperText, LowerTextStyle, LowerText)
Note AddTo( 
   System.int UpperTextStyle,
   System.string UpperText,
   System.int LowerTextStyle,
   System.string LowerText
Note^ AddTo( 
&   System.int UpperTextStyle,
&   System.String^ UpperText,
&   System.int LowerTextStyle,
&   System.String^ LowerText



Text style for the text of the balloon as defined in swBalloonTextContent_e


Text in the balloon


Text style for the text of the balloon as defined in swBalloonTextContent_e


Text in the lower part of the balloon (when Style = swBS_SplitCirc)

Return Value




This method adds a balloon note that is attached to the preselected entity to this stack. It returns an INote object, which you can then use to access the note (for example, to set the font of the note text). The balloon style and size are the same as the initial balloon in this stack.

If the balloon style is split circle, this method uses both the lower and upper text arguments. If the balloon style is anything other than split circle, this method uses the upper text arguments and ignores the lower text arguments.

If the text style is item number or quantity, SOLIDWORKS uses the note text to determine the preselected entity that this note is attached to, and ignores the corresponding text argument. If the preselection is a location on the drawing instead of an entity, you must specify the text style and text.

Use INote::GetBalloonStack to get a balloon stack interface from an existing note.


See Also


SOLIDWORKS 2001Plus FCS, Revision Number 10.0

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   AddTo Method (IBalloonStack)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.