Enumerations
An enumeration defines a named set of integer constants. Passing an enum member instead of a bare integer makes call sites self-documenting and allows the IDE to offer completion for the valid values. Each built-in package groups its enumerations under a dedicated sub-folder; this page indexes all of them.
The sections below list enumerations by package, followed by an alphabetical index.
By package
VBA Package
Fifteen enumerations covering window styles, comparison modes, message-box options, variable types, date and time constants, file attributes, and more.
- VbAppWinStyle -- window-style values for the windowstyle argument of Shell
- VbArchitecture -- processor-architecture values returned by ProcessorArchitecture
- VbCalendar -- calendar-type values for the Calendar property
- VbCallType -- procedure-call type flags for CallByName
- VbCompareMethod -- text-comparison modes for InStr, Replace, Split, and similar
- VbDateTimeFormat -- format codes for FormatDateTime
- VbDayOfWeek -- day-of-week constants for DateAdd, DateDiff, Weekday, and similar
- VbFileAttribute -- attribute flags for Dir, GetAttr, and SetAttr
- VbFirstWeekOfYear -- first-week-of-year selectors for DateDiff, DatePart, and Weekday
- VbIMEStatus -- Input Method Editor mode constants
- VbMsgBoxResult -- identifies the button clicked in a MsgBox dialog
- VbMsgBoxStyle -- buttons, icons, modality, and other flags for MsgBox
- VbStrConv -- conversion-type flags for StrConv
- VbTriState -- three-state values for formatting functions such as FormatNumber and FormatCurrency
- VbVarType -- Variant subtype codes returned by VarType
VBRUN Package
Eighty-six enumerations covering every aspect of classic VB6 controls and forms --- alignment, border styles, colours, drag-and-drop, OLE container options, printer settings, window states, and more.
- AlignConstants -- Align property values for picture boxes, toolbars, and data controls
- AlignmentConstants -- text alignment for label, text-box, and option-button controls
- AlignmentConstantsNoCenter -- left/right alignment values where centre is not available
- AppearanceConstants -- drawing style for the Appearance property
- ApplicationStartConstants -- standalone vs. Automation-invoked start-up mode
- AspectTypeConstants -- OLE rendering aspect identifiers for DataObjectFormat
- AsyncReadConstants -- flags for the AsyncReadOptions argument of UserControl.AsyncRead
- AsyncStatusCodeConstants -- status codes reported during AsyncReadProgress
- AsyncTypeConstants -- data kind delivered by UserControl.AsyncRead
- BackFillStyleConstants -- opaque vs. transparent background fill
- BorderStyleConstants -- line style for the BorderStyle property of Shape and Line controls
- ButtonConstants -- style for command buttons with optional image-based appearance
- CheckBoxConstants -- state values for the check-box Value property
- ClipboardConstants -- clipboard format identifiers for DataObject and Clipboard
- ColorConstants -- common named RGB colours
- ComboBoxConstants -- style values for the combo-box Style property
- ControlBorderStyleConstants -- border style for text boxes, picture boxes, and labels
- ControlBorderStyleConstantsCustom -- extended border style including custom-drawn borders
- ControlTypeConstants -- identifiers for standard intrinsic control types
- DatabaseTypeConstants -- database engine for the DefaultType property of a Data control
- DataBOFconstants -- action when the user moves past the start of a recordset
- DataEOFConstants -- action when the user moves past the end of a recordset
- DataErrorConstants -- response values for the Data control's Error event
- DataValidateConstants -- action codes in the Validate event
- DefaultCursorTypeConstants -- cursor-driver for the Data control's connection
- DockModeConstants -- dock-edge values for forms and toolbars
- DragConstants -- action values for the Drag method
- DragModeConstants -- automatic vs. manual drag-mode for controls
- DragOverConstants -- state values in the DragOver event
- DrawModeConstants -- GDI raster-operation values for the DrawMode property
- DrawStyleConstants -- line style for the DrawStyle property
- FillStyleConstants -- fill pattern for the FillStyle property
- FillStyleConstantsEx -- extended fill patterns including gradient fills
- FormArrangeConstants -- arrangement modes for the MDI Arrange method
- FormBorderStyleConstants -- border and frame style for the form's BorderStyle property
- FormShowConstants -- modality values for the Modal argument of Show
- FormWindowStateConstants -- window-state values for a form's WindowState property
- HitResultConstants -- return values from a UserControl's HitTest event
- KeyCodeConstants -- virtual-key codes for KeyDown and KeyUp events
- LinkModeConstants -- DDE link-mode values for the LinkMode property
- ListBoxConstants -- style values for the list-box Style property
- LoadPictureColorConstants -- colour depth for LoadPicture
- LoadPictureSizeConstants -- size selector for LoadPicture
- LoadResConstants -- resource-type values for LoadResPicture
- LogEventTypeConstants -- severity values for LogEvent
- LogModeConstants -- destination and behaviour flags for App.StartLogging
- MenuAccelConstants -- keyboard-accelerator codes for menu-item shortcuts
- MenuControlConstants -- alignment and trigger-button flags for PopupMenu
- MouseButtonConstants -- bit flags for the Button argument of mouse events
- MousePointerConstants -- cursor-shape values for the MousePointer property
- MultiSelectConstants -- multi-selection mode for the list-box MultiSelect property
- NegotiatePositionConstants -- menu placement during OLE in-place activation
- OldLinkModeConstants -- legacy DDE link-mode values retained for compatibility
- OLEContainerActivateConstants -- activation trigger for the AutoActivate property
- OLEContainerConstants -- combined enumeration of all OLE container option values
- OLEContainerDisplayTypeConstants -- display style for the OLE container DisplayType property
- OLEContainerSizeModeConstants -- sizing rules for the OLE container SizeMode property
- OLEContainerTypesAllowedConstants -- object-type filter for OLETypeAllowed
- OLEContainerUpdateOptionsConstants -- update mode for a linked OLE object
- OLEDragConstants -- OLE drag-mode values for OLEDragMode
- OLEDropConstants -- OLE drop-mode values for OLEDropMode
- OLEDropEffectConstants -- bit flags for the Effect argument of OLE drag-and-drop events
- PaletteModeConstants -- palette-source values for forms and UserControls
- ParentControlsType -- wrapping mode for the ParentControls collection
- PictureTypeConstants -- subtype values for stdole.IPictureDisp
- PrinterObjectConstants -- combined enumeration of all Printer object option values
- PrinterObjectConstants_ColorMode -- colour mode for Printer.ColorMode
- PrinterObjectConstants_Duplex -- duplex mode for Printer.Duplex
- PrinterObjectConstants_Orientation -- paper orientation for Printer.Orientation
- PrinterObjectConstants_PaperBin -- paper source for Printer.PaperBin
- PrinterObjectConstants_PaperSize -- paper size for Printer.PaperSize
- PrinterObjectConstants_PrintQuality -- print quality for Printer.PrintQuality
- QueryUnloadConstants -- reason codes for the form's QueryUnload event
- RasterOpConstants -- GDI raster-operation codes for PaintPicture
- RecordsetTypeConstants -- recordset type for a Data control
- ScaleModeConstants -- measurement units for the ScaleMode property
- ScrollBarConstants -- which scrollbars appear on text-box and similar controls
- ShapeConstants -- geometric shape values for the Shape control's Shape property
- ShiftConstants -- modifier-key bit flags for mouse and key events
- ShortcutConstants -- shortcut-key identifiers for menu items
- StartUpPositionConstants -- initial position for a form's StartUpPosition property
- StorageTypeContants -- OLE data-storage medium identifiers for DataObjectFormat
- SystemColorConstants -- system-UI colour references (pass through TranslateColor for plain RGB)
- VariantTypeConstants -- legacy DAO field-type tags retained for compatibility
- VerticalAlignmentConstants -- vertical text alignment for cell-style controls
- ZOrderConstants -- position selectors for the ZOrder method
WebView2 Package
Ten enumerations for navigation errors, permissions, download placement, script dialogs, print orientation, and resource-request filtering.
- wv2DefaultDownloadCornerAlign -- anchors the built-in download-progress dialog to a corner of the control
- wv2ErrorStatus -- reason a navigation failed (passed in the NavigationComplete event)
- wv2HostResourceAccessKind -- cross-origin access policy for a virtual hostname mapping
- wv2KeyEventKind -- keyboard message kind in the AcceleratorKeyPressed event
- wv2PermissionKind -- which device or browser capability a page is requesting
- wv2PermissionState -- the host's decision on a permission request
- wv2PrintOrientation -- page orientation for PrintToPdf
- wv2ProcessFailedKind -- identifies which WebView2 process failed
- wv2ScriptDialogKind -- which JavaScript dialog primitive the page is trying to open
- wv2WebResourceContext -- request kind matched by a web-resource filter
CustomControls Package
Thirteen enumerations governing the appearance and behaviour of the Waynes... custom controls.
- BorderStyle -- Win32 frame style for a WaynesForm window
- ColorRGBA -- 32-bit ABGR colour value type alias
- CornerShape -- shape of a single corner of a control (square, rounded, cut)
- Customtate -- control state flags for custom-state painting
- DockMode -- how a control is positioned relative to its container
- FillPattern -- how colour stops in a Fill are applied across the painted area
- FontWeight -- font weight on the standard 100--900 OpenType scale
- PixelCount -- pixel-measurement type alias used throughout the package
- PointSize -- typographic-point font-size type alias
- StartupPosition -- initial position of a WaynesForm window when first shown
- TextAlignment -- horizontal and vertical text alignment within a control
- TextOverflowMode -- how text that does not fit is truncated
- WindowState -- minimized, restored, or maximized state of a WaynesForm
CEF Package
Two enumerations for log verbosity and print orientation.
- CefLogSeverity -- minimum severity at which the CEF runtime records messages to its debug log
- cefPrintOrientation -- page orientation for PrintToPdf
WinServicesLib Package
Four enumerations covering service type, start mode, control codes, and runtime status.
- ServiceControlCodeConstants -- control codes the SCM can deliver to a running service
- ServiceStartConstants -- when and how the SCM starts a service
- ServiceStatusConstants -- runtime-state values a service reports to the SCM
- ServiceTypeConstants -- Win32 service-type values (own process, shared host, kernel driver)
WinNativeCommonCtls Package
Ten enumerations for the eight native common controls.
- DTPickerFormatConstants -- display format for a DTPicker control
- ImlDrawConstants -- render-style flags for ListImage.Draw
- OrientationConstants -- horizontal / vertical orientation for Slider and UpDown
- TreeBorderStyleConstants -- border style shared by TreeView and ListView
- TreeLabelEditConstants -- when inline label editing is triggered on a TreeView
- TreeLineStyleConstants -- whether the TreeView draws lines from root nodes or only child nodes
- TreeRelationshipConstants -- where a new node is inserted relative to an existing node
- TreeSortOrderConstants -- ascending or descending sort order for TreeView and Node
- TreeSortTypeConstants -- case-sensitive or case-insensitive sort comparison
- TreeStyleConstants -- composite visual style of a TreeView (buttons, lines, icons)
Alphabetical index
A
- AlignConstants -- Align property values (VBRUN)
- AlignmentConstants -- text alignment for labels and text boxes (VBRUN)
- AlignmentConstantsNoCenter -- left/right text alignment without centre (VBRUN)
- AppearanceConstants -- drawing style for Appearance property (VBRUN)
- ApplicationStartConstants -- standalone vs. Automation start mode (VBRUN)
- AspectTypeConstants -- OLE rendering aspect identifiers (VBRUN)
- AsyncReadConstants -- UserControl.AsyncRead option flags (VBRUN)
- AsyncStatusCodeConstants -- AsyncReadProgress status codes (VBRUN)
- AsyncTypeConstants -- data kind from UserControl.AsyncRead (VBRUN)
B
- BackFillStyleConstants -- opaque vs. transparent background (VBRUN)
- BorderStyle -- Win32 frame style for WaynesForm (CustomControls)
- BorderStyleConstants -- line style for Shape and Line controls (VBRUN)
- ButtonConstants -- style for graphical command buttons (VBRUN)
C
- CefLogSeverity -- CEF debug-log minimum severity (CEF)
- cefPrintOrientation -- page orientation for PrintToPdf (CEF)
- CheckBoxConstants -- check-box Value property state (VBRUN)
- ClipboardConstants -- clipboard format identifiers (VBRUN)
- ColorConstants -- named RGB colours (VBRUN)
- ColorRGBA -- 32-bit ABGR colour type alias (CustomControls)
- ComboBoxConstants -- combo-box Style property values (VBRUN)
- ControlBorderStyleConstants -- border style for intrinsic controls (VBRUN)
- ControlBorderStyleConstantsCustom -- extended border style including custom-drawn (VBRUN)
- ControlTypeConstants -- standard intrinsic control type identifiers (VBRUN)
- CornerShape -- corner shape (square, rounded, cut) (CustomControls)
- Customtate -- control state flags for custom painting (CustomControls)
D
- DatabaseTypeConstants -- Data control database engine (VBRUN)
- DataBOFconstants -- action at beginning of recordset (VBRUN)
- DataEOFConstants -- action at end of recordset (VBRUN)
- DataErrorConstants -- Data control Error event response values (VBRUN)
- DataValidateConstants -- action codes in the Validate event (VBRUN)
- DefaultCursorTypeConstants -- cursor driver for a Data control connection (VBRUN)
- DockMode -- how a CustomControl is docked (CustomControls)
- DockModeConstants -- dock-edge values for forms and toolbars (VBRUN)
- DragConstants -- Drag method action values (VBRUN)
- DragModeConstants -- automatic vs. manual drag mode (VBRUN)
- DragOverConstants -- state values in the DragOver event (VBRUN)
- DrawModeConstants -- GDI raster-operation for DrawMode (VBRUN)
- DrawStyleConstants -- line style for DrawStyle property (VBRUN)
- DTPickerFormatConstants -- DTPicker display format (WinNativeCommonCtls)
F
- FillPattern -- how colour stops in a Fill are applied (CustomControls)
- FillStyleConstants -- fill pattern for FillStyle property (VBRUN)
- FillStyleConstantsEx -- extended fill patterns with gradient fills (VBRUN)
- FontWeight -- font weight on the 100--900 scale (CustomControls)
- FormArrangeConstants -- MDI child-window arrangement modes (VBRUN)
- FormBorderStyleConstants -- form border and frame style (VBRUN)
- FormShowConstants -- modality for Show (VBRUN)
- FormWindowStateConstants -- form window state (VBRUN)
H
- HitResultConstants -- UserControl.HitTest return values (VBRUN)
I
- ImlDrawConstants -- ListImage.Draw render-style flags (WinNativeCommonCtls)
K
- KeyCodeConstants -- virtual-key codes for key events (VBRUN)
L
- LinkModeConstants -- DDE link-mode values (VBRUN)
- ListBoxConstants -- list-box Style property values (VBRUN)
- LoadPictureColorConstants -- LoadPicture colour depth (VBRUN)
- LoadPictureSizeConstants -- LoadPicture size selector (VBRUN)
- LoadResConstants -- LoadResPicture resource type (VBRUN)
- LogEventTypeConstants -- LogEvent severity values (VBRUN)
- LogModeConstants -- App.StartLogging destination flags (VBRUN)
M
- MenuAccelConstants -- menu-item keyboard-accelerator codes (VBRUN)
- MenuControlConstants -- PopupMenu alignment and trigger flags (VBRUN)
- MouseButtonConstants -- mouse-event Button argument bit flags (VBRUN)
- MousePointerConstants -- MousePointer property cursor shape (VBRUN)
- MultiSelectConstants -- list-box multi-selection mode (VBRUN)
N
- NegotiatePositionConstants -- menu placement during OLE in-place activation (VBRUN)
O
- OldLinkModeConstants -- legacy DDE link-mode values (VBRUN)
- OLEContainerActivateConstants -- OLE container auto-activation trigger (VBRUN)
- OLEContainerConstants -- combined OLE container option values (VBRUN)
- OLEContainerDisplayTypeConstants -- OLE container display style (VBRUN)
- OLEContainerSizeModeConstants -- OLE container sizing rules (VBRUN)
- OLEContainerTypesAllowedConstants -- OLE container object-type filter (VBRUN)
- OLEContainerUpdateOptionsConstants -- OLE container update mode (VBRUN)
- OLEDragConstants -- OLEDragMode property values (VBRUN)
- OLEDropConstants -- OLEDropMode property values (VBRUN)
- OLEDropEffectConstants -- OLE drag-and-drop Effect bit flags (VBRUN)
- OrientationConstants -- horizontal / vertical for Slider and UpDown (WinNativeCommonCtls)
P
- PaletteModeConstants -- palette source for forms and UserControls (VBRUN)
- ParentControlsType -- ParentControls collection wrapping mode (VBRUN)
- PictureTypeConstants -- IPictureDisp subtype values (VBRUN)
- PixelCount -- pixel-measurement type alias (CustomControls)
- PointSize -- typographic-point font-size type alias (CustomControls)
- PrinterObjectConstants -- combined Printer object option values (VBRUN)
- PrinterObjectConstants_ColorMode -- Printer.ColorMode values (VBRUN)
- PrinterObjectConstants_Duplex -- Printer.Duplex values (VBRUN)
- PrinterObjectConstants_Orientation -- Printer.Orientation values (VBRUN)
- PrinterObjectConstants_PaperBin -- Printer.PaperBin values (VBRUN)
- PrinterObjectConstants_PaperSize -- Printer.PaperSize values (VBRUN)
- PrinterObjectConstants_PrintQuality -- Printer.PrintQuality values (VBRUN)
Q
- QueryUnloadConstants -- QueryUnload event reason codes (VBRUN)
R
- RasterOpConstants -- GDI raster-operation codes for PaintPicture (VBRUN)
- RecordsetTypeConstants -- Data control recordset type (VBRUN)
S
- ScaleModeConstants -- measurement units for ScaleMode (VBRUN)
- ScrollBarConstants -- which scrollbars appear on a control (VBRUN)
- ServiceControlCodeConstants -- SCM control codes for a running service (WinServicesLib)
- ServiceStartConstants -- service start mode (WinServicesLib)
- ServiceStatusConstants -- service runtime state values (WinServicesLib)
- ServiceTypeConstants -- Win32 service type (WinServicesLib)
- ShapeConstants -- geometric shape for the Shape control (VBRUN)
- ShiftConstants -- modifier-key bit flags for mouse and key events (VBRUN)
- ShortcutConstants -- menu-item keyboard shortcut identifiers (VBRUN)
- StartupPosition -- initial position of a WaynesForm (CustomControls)
- StartUpPositionConstants -- form StartUpPosition property values (VBRUN)
- StorageTypeContants -- OLE data-storage medium identifiers (VBRUN)
- SystemColorConstants -- system-UI colour references (VBRUN)
T
- TextAlignment -- horizontal and vertical text alignment (CustomControls)
- TextOverflowMode -- text truncation mode (CustomControls)
- TreeBorderStyleConstants -- TreeView and ListView border style (WinNativeCommonCtls)
- TreeLabelEditConstants -- TreeView inline-label-editing trigger (WinNativeCommonCtls)
- TreeLineStyleConstants -- TreeView tree-lines scope (WinNativeCommonCtls)
- TreeRelationshipConstants -- Nodes.Add insertion position (WinNativeCommonCtls)
- TreeSortOrderConstants -- TreeView / Node sort direction (WinNativeCommonCtls)
- TreeSortTypeConstants -- TreeView / Node sort comparison mode (WinNativeCommonCtls)
- TreeStyleConstants -- TreeView composite visual style (WinNativeCommonCtls)
V
- VbAppWinStyle -- window-style values for Shell (VBA)
- VbArchitecture -- processor-architecture values (VBA)
- VbCalendar -- calendar type values (VBA)
- VbCallType -- CallByName call-type flags (VBA)
- VbCompareMethod -- text-comparison mode for string functions (VBA)
- VbDateTimeFormat -- FormatDateTime format codes (VBA)
- VbDayOfWeek -- day-of-week constants for date functions (VBA)
- VbFileAttribute -- file-attribute flags (VBA)
- VbFirstWeekOfYear -- first-week-of-year selectors for date functions (VBA)
- VbIMEStatus -- Input Method Editor mode constants (VBA)
- VbMsgBoxResult -- MsgBox button-clicked identifier (VBA)
- VbMsgBoxStyle -- MsgBox button, icon, and modality flags (VBA)
- VbStrConv -- StrConv conversion-type flags (VBA)
- VbTriState -- three-state values for formatting functions (VBA)
- VbVarType -- VarType Variant subtype codes (VBA)
- VariantTypeConstants -- legacy DAO field-type tags (VBRUN)
- VerticalAlignmentConstants -- vertical text alignment (VBRUN)
W
- WindowState -- WaynesForm window state (CustomControls)
- wv2DefaultDownloadCornerAlign -- download-dialog corner alignment (WebView2)
- wv2ErrorStatus -- navigation failure reason (WebView2)
- wv2HostResourceAccessKind -- virtual-hostname cross-origin access policy (WebView2)
- wv2KeyEventKind -- accelerator-key event kind (WebView2)
- wv2PermissionKind -- permission request capability identifier (WebView2)
- wv2PermissionState -- permission-request decision (WebView2)
- wv2PrintOrientation -- PrintToPdf page orientation (WebView2)
- wv2ProcessFailedKind -- failed WebView2 process identifier (WebView2)
- wv2ScriptDialogKind -- JavaScript dialog kind (WebView2)
- wv2WebResourceContext -- web-resource filter request kind (WebView2)
Z
- ZOrderConstants -- ZOrder method position selectors (VBRUN)
See Also
- Statements -- alphabetical index of language statements
- Procedures and Functions -- alphabetical index of callable runtime members
- Operators -- arithmetic, comparison, logical, and bitwise operators
- Packages -- all twelve built-in packages