Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStylesProvider::StyleId property

Identifies the visual style of an element in a document.

This property is read-only.


HRESULT get_StyleId(
  [out, retval] int *retVal

Property value

Type: int*

The style identifier. For a list of possible values, see Style Identifiers.


A provider should use this property to expose style identifiers that are useful to client applications. For example, a provider might expose the StyleId_Title identifier for an element that represents the title of a presentation. A screen reader could then retrieve the StyleId property, discover that the element is a presentation title, and read the title to the user.

List Styles

IDs for list styles are supported starting with Windows 8.1.

These styles should be applied at a paragraph level; all text that is part of a list item should have one of these styles applied to it.

When bullet styles are mixed within a list, the BulletedList style should be applied to the whole range, and the BulletStyle attribute value (property identified by UIA_BulletStyleAttributeId) should be mixed according to breakdown of different bullet types within the range. When nested lists contain bullets also (perhaps of a different type than the main list), the BulletedList style would again be applied to the whole range, and the BulletStyle attribute value is whatever the nested bullet style is (for the range covering the nested list).


Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]


UIAutomationCore.h (include UIAutomation.h)



See also

UI Automation Support for Textual Content



© 2018 Microsoft