Defining Styles


    Sponsored Links


  • 1. Insert string into a Cell ?
    Hi, How do I insert string into a cell ? Dim myString As string myString = "abcd" shp.CellsSRC(visSectionProp, visRowProp, visCustPropsValue) = myString 'This will yield with type mismatch error. Thanks.
  • 2. How do I arc grouped items in Visio?
    I am using Visio to make a diagram of our Auditorium. I have the room and the chairs done but I cannot figure out how to get the chairs to arc. Right now they are just grouped and in a straight line. Please help. Thanks.
  • 3. How do i find other visio shapes like network from online?
  • 4. creating a visio 2003 button add-on using VSTO with Visual Studio
    I need some guidance in creating a button (to perform an action) on a visio toolbar or menu when visio starts up (code to be placed in the start up sub of the add-in), could someone help in directing me to a good source on how this may be accomplished or provide some basic code for a start. using Visio 2003 professional, windows xp. .NET framework 2.0 The code below has steps i think is involve, but please confirm if i have the correct approach. This was a test to disable a menuitem. Thanks. Dim menuUIObject As Visio.UIObject Dim menuMenuSets As Visio.MenuSets Dim menuMenuSet As Visio.MenuSet Dim visioMenusCol As Visio.Menus Dim VisioMenu As Visio.Menu Dim menuItemsCol As Visio.MenuItems Dim mitem As Visio.MenuItem menuUIObject = vApp.BuiltInMenus.MenuSets menuMenuSets = menuUIObject '.MenuSets menuMenuSet = menuMenuSets.ItemAtID(1010) visioMenusCol = menuMenuSet.Menus 'menus collection. File ,Edit etc. VisioMenu = visioMenusCol.Item(0) 'Represents a single menu on a Microsoft Visio menu bar, such as the File menu or Edit menu. menuItemsCol = VisioMenu.MenuItems 'Contains a MenuItem object for each command on a Microsoft Visio menu. mitem = menuItemsCol.Item(0) 'getting one item from File menu [New] mitem.Enabled = False

Defining Styles

Postby SGVsZW4 » Sun, 01 Apr 2007 02:30:01 GMT

Good day,

Can we select (or assign) more than one font when defining styles?


Re: Defining Styles

Postby Chris Roth [MVP] » Tue, 03 Apr 2007 11:39:10 GMT

Hi Helen,

Each style can only have one font, but a document can have several styles, 
each with a different font. Furthermore, styles can be based on other 
styles, and so "cascade" in a way. So a derived-style could have a different 
font from its base style.

What are you trying to do?

Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
Visio programming info:
Other Visio resources:

Re: Defining Styles

Postby Al Gillis » Sat, 07 Apr 2007 06:30:29 GMT

At first I thought this newsgroup had turned religious on me, but then I 
realized Helen's spell-checker or her typing made for an "interesting" 

Re: Defining Styles

Postby SGVsZW4 » Sat, 07 Apr 2007 06:40:05 GMT

Ha!  Did I have a good laugh over this one!  Sorry about that!  Maybe I am 
Easter-happy, I don't know!


Re: Defining Styles

Postby David Parker » Fri, 13 Apr 2007 15:55:45 GMT

Careful, you'll bring down the Roth of god on you....

Similar Threads:

1."Apply" Button greyed out when Defining Styles

Hi there,

 I have an interesting problem, probably one that the experts here will
roll their eyes and say, "Man, is that easy..:

 When I launch Visio 2003 I would like to set the Default Font to 14pt
Arial. I have figured out how to make the changes by using "Define
Styles..." however when I make the font size change the "Apply" button
stays greyed out and does not activate. I can change many of the
settings however the button still does not activate. Then when I close
Visio and reopen it the changes do not apply and it is back to the
default, Arial 8pt. I am using Visio Standard 2003. My feeling is that
maybe I need to define the location of where to save the changes in the
"File Locations" option however after testing this didn't work for me.
Any help or suggestions would be greatly appreciated, thanks!

2.Visio 2003 and Styles not defined correctly...

...I'm using Visio 2003 and have defined a number of styles, but when I try 
to apply them to other shapes within the same drawing, not all attributes are 
applied, e.g. a fill is listed within the drop-down list of attributes, but 
isn't applied by default. The "local" box is not checked BTW.
Thanks in advance,

3.Styles: [1] copying; [2] define-by-example

Hi people.  Two questions.

1.  This must be simple but it eludes me completely.  When I define a 
custom style and realize I want to be able to use it elsewhere, how do I 
export it to another document or template?

2.  Does Visio have an equivalent to Word's "Style by example"? 
Meaning, you could manually format a shape and tell the program to make 
those attributes become the style.

Thanks in advance.

4.Private mdctShapesVisited As Dictionary - User-defined type not defined

Dear All,

Found a piece of code in Microsoft Code Librarian. Under VB6 Connections the 
is a line of code:

Private mdctShapesVisited As Dictionary

But when I run the code it says: User-defined type not defined on this line 
of code.

May I know what library should I include for the Dictionary data type?

Please help.


5.Visio Shape Styles(Text, Fill and Line Style)


    I am using Visio 2003 and C#  for my application developement.
    The Text Block (in which only Text of shape appears) of Visio can
be obtained by using below given three lines:

    vsoShape1.TextStyle = "Basic"
    vsoShape1.LineStyle = "Text Only"
    vsoShape1.FillStyle = "Text Only"  in VBA.

    But can someone tell me how can we obtain the same by using C#.
Means what are the corresponding values for "Basic" and "Text Only" in

Thanks in Advance, 

6. VisSaveAsWeb user-defined type not defined

7. Visio Shape Styles (Text, Fill and Line Style)

8. 'MSDN Style' Visio Stencil

Return to VISIO


Who is online

Users browsing this forum: No registered users and 74 guest