IStylesProvider::StyleId property

Identifies the visual style of an element in a document.

This property is read-only.

Syntax


HRESULT get_StyleId(
  [out, retval]  int *retVal
);

Property value

Type: int*

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

Remarks

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).

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

IStylesProvider
BulletStyle
UI Automation Support for Textual Content

 

 

Community Additions

ADD
Show:
© 2014 Microsoft