SetID property

Microsoft Visio Developer Reference

SetID property

   Example   

Returns the set ID of an AccelTable, Menuset, or Toolbar object in its collection.

Version added

4.0

Syntax

intRet = object.SetID

intRet

Long. The set ID of the object.

object

Required. An expression that returns an AccelTable, MenuSet, or ToolbarSet object.

Remarks

Each AccelTable, MenuSet, and ToolbarSet object has a set ID that corresponds to a Visio window context. For MenuSet objects, IDs also correspond to shortcut menu sets. And for ToolbarSet objects, they also correspond to drop-down menus under toolbar buttons (such as Fill Color or Line Weight).

You can use the set ID to retrieve an object from its collection with the ItemAtID property. You can also set the set ID of an object using the AddAtID method.

Valid set ID values are declared by the Visio type library in VisUIObjSets.

Click to show or hide information.ID constants for AccelTable objects

Constant

Value

Description

visUIObjSetNoDocument

1

Obsolete. Use visUIObjSetDrawing.

visUIObjSetDrawing

2

Drawing window is active or no documents are open.

visUIObjSetStencil

3

Stencil window is active.

visUIObjSetShapeSheet

4

ShapeSheet window is active.

visUIObjSetIcon

5

Icon editing window is active.

visUIObjSetInPlace

6

Visio is running in-place.

visUIObjSetPrintPreview

7

Visio is in Print Preview mode.

visUIObjSetText

8

Obsolete.

visUIObjSetActiveXDoc

18

Visio is running as an Active document.

visUIObjSetHostingInPlace

22

An object is active in Visio.

Click to show or hide information.ID constants for MenuSet objects

Constant

Value

Description

visUIObjSetNoDocument

1

Obsolete. Use visUIObjSetDrawing.

visUIObjSetDrawing

2

Drawing window is active or no documents are open.

visUIObjSetStencil

3

Stencil window is active.

visUIObjSetShapeSheet

4

ShapeSheet window is active.

visUIObjSetIcon

5

Icon editing window is active.

visUIObjSetInPlace

6

Obsolete. Use visUIObjSetDrawing.

visUIObjSetPrintPreview

7

Visio is in Print Preview mode.

visUIObjSetCntx_DrawObjSel

9

Shortcut menu: Visio drawing shape.

visUIObjSetCntx_DrawOleObjSel

10

Shortcut menu: foreign drawing shape.

visUIObjSetCntx_DrawNoObjSel

11

Obsolete.

visUIObjSetCntx_InPlaceNoObj

12

Obsolete.

visUIObjSetCntx_TextEdit

13

Shortcut menu: editing shape text.

visUIObjSetCntx_Master

14

Shortcut menu: Master.

visUIObjSetCntx_ShapeSheet

15

Shortcut menu: Shape window.

visUIObjSetCntx_Toolbar

16

Obsolete.

visUIObjSetCntx_Fullscreen

17

Shortcut menu: Full Screen mode.

visUIObjSetBinderInPlace

18

Obsolete. Use visUIObjSetDrawing.

visUIObjSetCntx_Debug

19

Do not use.

visUIObjSetCntx_StencilRW

20

Obsolete.

visUIObjSetCntx_Stencil

21

Shortcut menu: Stencil window.

visUIObjSetHostingInPlace

22

Obsolete. Use visUIObjSetDrawing.

visUIObjSetCntx_PageTabs

47

Shortcut menu: Page tab

visUIObjSetCntx_ConnectPtType

44

Shortcut menu: Connection Point.

visUIObjSetCntx_DEDocument

49

Shortcut menu: Drawing Explorer, root item.

visUIObjSetCntx_DEPages

50

Shortcut menu: Drawing Explorer, Pages folder.

visUIObjSetCntx_DEPage

51

Shortcut menu: Drawing Explorer, Page item.

visUIObjSetCntx_DEShapes

52

Shortcut menu: Drawing Explorer, Shapes folder.

visUIObjSetCntx_DEShape

53

Shortcut menu: Drawing Explorer, Shape item.

visUIObjSetCntx_DELayers

54

Shortcut menu: Drawing Explorer, Layers folder.

visUIObjSetCntx_DELayer

55

Shortcut menu: Drawing Explorer, Layer item.

visUIObjSetCntx_DEStyles

56

Shortcut menu: Drawing Explorer, Styles folder.

visUIObjSetCntx_DEStyle

57

Shortcut menu: Drawing Explorer, Style item.

visUIObjSetCntx_DEMasters

58

Shortcut menu: Drawing Explorer, Masters folder.

visUIObjSetCntx_DEMaster

59

Shortcut menu: Drawing Explorer, Master item.

visUIObjSetCntx_DEPatterns

60

Shortcut menu: Drawing Explorer, Patterns folder.

visUIObjSetCntx_AnchorBar_Base

61

Shortcut menu: anchored windows.

visUIObjSetCntx_AnchorBar_CustProp

62

Shortcut menu: Custom Properties anchored window.

visUIObjSetCntx_AnchorBar_SizePos

63

Shortcut menu: Size & Position anchored window.

Click to show or hide information.ID constants for ToolbarSet objects

Constant

Value

Description

visUIObjSetNoDocument

1

Obsolete. Use visUIObjSetDrawing.

visUIObjSetDrawing

2

Drawing window is active or no documents are open.

visUIObjSetStencil

3

Stencil window is active.

visUIObjSetShapeSheet

4

ShapeSheet window is active.

visUIObjSetIcon

5

Icon editing window is active.

visUIObjSetPrintPreview

7

Visio is in Print Preview mode.

visUIObjSetPal_LineColors

24

Toolbar palette: Line Color.

visUIObjSetPal_LineWeights

25

Toolbar palette: Line Weight.

visUIObjSetPal_LinePatterns

26

Toolbar palette: Line Pattern.

visUIObjSetPal_FillColors

27

Toolbar palette: Fill Color.

visUIObjSetPal_FillPatterns

28

Toolbar palette: Fill Pattern.

visUIObjSetPal_TextColors

29

Toolbar palette: Text Color.

visUIObjSetPal_AlignShapes

30

Toolbar palette: Align Shapes.

visUIObjSetPal_DistributeShapes

31

Toolbar palette: Distribute Shapes.

visUIObjSetPal_Shadow

32

Toolbar palette: Shadow Color.

visUIObjSetPal_LineEnds

33

Toolbar palette: Line Ends.

visUIObjSetPal_CornerRounding

34

Toolbar palette: Corner Rounding.

visUiObjSetPal_RectangleTool

37

Toolbar palette: Rectangle and Ellipse drawing tools.

visUIObjSetPopup_LineJumpStyle

38

Toolbar palette: Line Jump Style.

visUIObjSetPopup_LineJumpCode

39

Toolbar palette: Add line jumps to.

visUiObjSetPal_ConnectorTool

40

Toolbar palette: Connector, Connection Point, and Stamp drawing tools.

visUiObjSetPal_TextTool

41

Toolbar palette: Text and Text Block drawing tools.

visUiObjSetPal_LineTool

42

Toolbar palette: Line, Arc, Pencil, and Freeform drawing tools.

visUiObjSetPal_RotationTool

43

Toolbar palette: Rotation and Crop tools.

visUiObjSetPal_Undo

45

Obsolete.

visUiObjSetPal_Redo

46

Obsolete.

visUiObjSetPal_ShapeExt

48

Obsolete.