Has screen readers announce a text.
| C# | void object.Announce(string Text, SftDateAnnounceConstants Kind = announceSftDateInfo, bool Assertive = false); |
| VB.NET | object.Announce(ByVal Text As String, [ ByVal Kind As SftDateAnnounceConstants = announceSftDateInfo ], [ ByVal Assertive As Boolean = False ]) |
| C++ | HRESULT object->Announce(_bstr_t Text, enum SftDateAnnounceConstants Kind = announceSftDateInfo, VARIANT_BOOL Assertive = false); |
| C | HRESULT object->raw_Announce(BSTR Text, enum SftDateAnnounceConstants Kind, VARIANT_BOOL Assertive); |
object
Text
The text screen readers announce.
Kind
The kind of announcement. The default is announceSftDateInfo.
| Name | Value | Description |
|---|---|---|
| announceSftDateInfo | 0 | Information |
| announceSftDateSuccess | 1 | Success |
| announceSftDateWarning | 2 | Warning |
| announceSftDateError | 3 | Error |
Assertive
Defines whether the announcement interrupts what the screen reader is saying (True) or waits until it is done (False, the default).
The Announce method raises a UI Automation notification event on the control, which screen readers such as Narrator and NVDA speak. An application uses it to tell the user something the control itself doesn't show, for example why a date was refused in the ValueValidating event. p Nothing happens if no UI Automation client is listening.
See Also SftCalendar Object | Object Hierarchy | Accessibility (Screen Readers)