Struct Role
sealed struct Role
Represents the role of a UCC element.
Fields
Constants
ADJUSTABLE
This component can be “adjusted” (e.g. a slider). TheRole={"adjustable"}
IAdjustable and
IValue interfaces should be supported.
ALERT
This component is a live region with important, and usually time-sensitive, information. TheRole={"alert"}
ILiveRegion::mode should
return LiveRegionMode2::ASSERTIVE.
APPLICATION
This element represents an application, where assistive technologies should switch to a mode that passes most or all standard input events through to the application.Role={"application"}
BANNER
This component is a landmark that contains site-oriented content, typically at the top of the page.Role={"banner"}
BUTTON
This component is a button. It likely contains text or an icon or a picture, and tapping it performs an action. The “activate” standard action should be supported.Role={"button"}
CALENDAR
This element represents a calendar. TheRole={"calendar"}
ICollectionInfo
interface should be supported.
CAPTION
This element represents a caption or title for a table or figure.Role={"caption"}
CELL
This component is a cell in a tabular container. TheRole={"cell"}
ICollectionItemInfo interface should be supported.
CHECKBOX
This component is a checkbox, and can be checked, unchecked, or mixed. TheRole={"checkbox"}
ICheckable interface should be supported.
COLUMN_HEADER
This element is a cell containing header information for a column. TheRole={"columnheader"}
ICollectionItemInfo interface should be supported.
COMBO_BOX
This component represents a combo box, which allows the user to select among several choices. TheRole={"combobox"}
IExpandable interface should be
supported.
COMPLEMENTARY
This element is a supporting landmark region that complements the main content.Role={"complementary"}
CONTENT_INFO
This component is a landmark that contains information about the parent document, such as copyright or metadata.Role={"contentinfo"}
DIALOG
This component is a descendant window of the primary application window, which is used to prompt the user to enter or respond to information. TheRole={"dialog"}
IPane interface should be supported.
DOCUMENT
This component containing content that assistive technology users may want to browse in a reading mode.Role={"document"}
EDIT
This component contains editable text. TheRole={"edit"}
IEditable interface is
required.
FIGURE
This element represents a figure inside page content where appropriate semantics do not already exist. A figure is generally considered to be one or more images, code snippets, or other content that puts across information in a different way to a regular flow of text.Role={"figure"}
FORM
This element is a landmark region that contains a collection of items and objects that, as a whole, combine to create a form.Role={"form"}
GENERIC_CONTAINER
This component is a generic nameless container with no semantic meaning.Role={"genericcontainer"}
GROUP
This component is a named container that contains a set of related user interface objects to form a logical group.Role={"group"}
HEADER
This component is a header for a content section (e.g. the title of a navigation bar).Role={"header"}
IMAGE
This component represents an image.Role={"image"}
IMAGE_BUTTON
The component should be treated as a button and is also an image. The “activate” standard action should be supported.Role={"imagebutton"}
KEYBOARD
This element contains an on-screen keyboard. TheRole={"keyboard"}
ICollectionInfo interface should be supported.
KEY
This element represents a key on an on-screen keyboard. TheRole={"key"}
ICollectionItemInfo interface and “activate” standard action should be
supported.
LINK
This element is a link. The “activate” standard action should be supported.Role={"link"}
LIST
This component is a region containing a list of listitem. TheRole={"list"}
ICollectionInfo interface should be supported.
LIST_ITEM
This component is an individual item in a list. A listitem must have list ancestor. TheRole={"listitem"}
ICollectionItemInfo interface should be
supported.
LOG
This component is a live region where new information is added in meaningful order and old information may disappear. TheRole={"log"}
ILiveRegion::mode should return LiveRegionMode2::POLITE.
MAIN
This element is a landmark region containing the main content of a document.Role={"main"}
MARQUEE
This component is a live region where non-essential information changes frequently. TheRole={"marquee"}
ILiveRegion::mode should return
LiveRegionMode2::OFF.
MATH
This component contains content that represents mathematical expressions marked up in an accessible format such as MathML.Role={"math"}
MENU
This element represents a menu of items. TheRole={"menu"}
ICollectionInfo interface
should be supported.
MENU_BAR
The component is a container of multiple menus. TheRole={"menubar"}
ICollectionInfo interface should be supported.
MENU_ITEM
This element represents a menu item. TheRole={"menuitem"}
ICollectionItemInfo
interface should be supported.
METER
This component represents a graphical display of a numeric value within a defined range (e.g. showing battery percentage). TheRole={"meter"}
IValue
interface should be supported.
NAVIGATION
This element is a landmark that contains a collection of navigational links used for navigating through a website or page content.Role={"navigation"}
NOTE
This element is parenthetic or ancillary content to the main content.Role={"note"}
PAGER
This component displays a series of components one at a time, which is commonly used with UI like a setup wizard or a slideshow. TheRole={"pager"}
IPageable and ICollectionInfo interfaces should be supported.
PARAGRAPH
This element contains a paragraph of text.Role={"paragraph"}
PROGRESS_BAR
This element is a progress bar. TheRole={"progressbar"}
IValue interface is
required if the progress bar displays determinate progress.
RADIO_BUTTON
This component is a radio button in a group of radio buttons, it can be checked or unchecked. TheRole={"radiobutton"}
ICheckable and
ICollectionItemInfo interfaces should be supported.
RADIO_GROUP
This component contains a group of radio buttons. TheRole={"radiogroup"}
ICollectionInfo interface should be supported.
REGION
This component is a landmark region that contains content sufficiently important that users will likely want to navigate to the section easily and to have it listed in a summary of the page. The description property is required to describe the purpose of the content in the region.Role={"region"}
ROW
This component is a row of cells in a tabular container. TheRole={"row"}
ICollectionInfo interface should be supported.
ROW_HEADER
This element is a cell containing header information for a row. TheRole={"rowheader"}
ICollectionItemInfo interface should be supported.
SCROLL_BAR
This component represents a scroll bar that controls the scrolling of a region. TheRole={"scrollbar"}
IValue interface should be supported
SEARCH
This component is a text field component that should also be treated as a search field. TheRole={"search"}
IEditable interface should be supported.
SEARCH_REGION
This element is a landmark region that contains a collection of items and objects that, as a whole, combine to create a search facility.Role={"searchregion"}
SEPARATOR
This element is a divider that separates and distinguishes sections of content or groups of menuitems. If the separator is focusable, theRole={"separator"}
IValue interface should be supported to reflect the current
position of the separator.
SPIN_BUTTON
This component allows the user to select from the given range through the use of an up and down button on the screen or on the keyboard. TheRole={"spinbutton"}
IAdjustable and IValue interfaces are required.
STATUS
This component is a live region containing advisory information for the user that is not important enough to be an alert. TheRole={"status"}
ILiveRegion::mode should return LiveRegionMode2::POLITE.
SUMMARY
This component is used when a component can be used to provide a quick summary of current conditions in the app when the app first launches. TheRole={"summary"}
IPane interface should be supported.
SWITCH
This component is a switch which can be turned on and off, as opposed to checked/unchecked. TheRole={"switch"}
ISwitchable interface should be
supported.
TAB
This component is a tab. TheRole={"tab"}
ICollectionItemInfo and ISelectable
interfaces should be supported.
TAB_LIST
This component is a region containing a list of tab components. TheRole={"tablist"}
ICollectionInfo interface should be supported.
TABLE
This component is a section containing data arranged in rows and columns. TheRole={"table"}
ICollectionInfo interface should be supported.
TEXT
This component is static text that cannot change.Role={"text"}
IElementDescription::text should return the text.
TIMER
This component is a region displaying a counter that indicates elapsed time or time remaining. TheRole={"timer"}
ILiveRegion::mode
should return LiveRegionMode2::OFF and IValue interfaces should be
supported.
TOOL_BAR
This component represents a tool bar (a container of action buttons or components). TheRole={"toolbar"}
ICollectionInfo interface should be
supported.
TOOLTIP
This component is a contextual text bubble that displays a description for an element that appears on pointer hover or keyboard focus.Role={"tooltip"}
TREE
This component is a hierarchical list with parent and child nodes that can expand and collapse.Role={"tree"}
TREE_ITEM
This element is an individual node in a tree component.Role={"treeitem"}

