Partager via


IXRTextBlock::SetHighlights (Windows Embedded CE 6.0)

1/6/2010

This method sets a value that specifies a set of characters to be highlighted.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetHighlights(
    WCHAR* Highlights
) = 0; 

Parameters

  • Highlights
    [in] Pointer to a string that contains highlight indices that specify a set of characters to be highlighted.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in Highlights represents highlight indices that are used to specify the substring in the text to highlight. It contains short integers in pairs that indicate where the current text highlights are positioned. Pairs are ordered as {start position}, {length}. For example, if the content in the text block is "hello world" and the highlight indices are [0,4], the content "hello world" would be displayed on-screen with the substring "hello" displayed in highlights.

.NET Framework Equivalent

None.

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBlock
IXRTextBlock::GetHighlights