• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Generating Visio Drawings wi... > Adding Text to a Visio SmartShapes S...

Adding Text to a Visio SmartShapes Symbol

The text that is normally typed onto a SmartShape symbol is a property of the Shape object. The text is a string and not an object, therefore no explicit SET statement is required to bind the return from the Text property call to the variable holding the value. You will need to use LineFeed Chr$(10) symbol in a string to break the string. An alternative is to use the Visual Basic vbCrLf constant. If you want to include double-quote marks in your text string, you will need to either use Chr$(34)

shpObj.Text = Chr$(34) & "Hello?" & Chr$(34)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint