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

CaretPosition enumeration

Contains possible values for the CaretPosition text attribute, which indicates the location of the caret relative to a line of text in a text range.

Syntax


typedef enum  { 
  CaretPosition_Unknown          = 0,
  CaretPosition_EndOfLine        = 1,
  CaretPosition_BeginningOfLine  = 2
} CaretPosition;

Constants

CaretPosition_Unknown

The caret is not at the beginning or the end of a line.

CaretPosition_EndOfLine

The caret is at the end of a line.

CaretPosition_BeginningOfLine

The caret is at the beginning of a line.

Remarks

The provider of a text-based control considers the caret to be at some character position in the text. For example, if the caret is at the start of the text, it lies at position 0. If the caret is just after the first character, it lies at position 1, and so on. When text wraps around at the end of a line, typically a space is shown at the end of the line, and a non-space character at the start of the next line. The user might be able to place the caret after the space at the end of the first line, or before the non-space character at the start of the next line. However, both places are considered to be the same character position. The CaretPosition attribute indicates whether the caret is shown at the end or the beginning of a line. If the caret lies at neither of these positions, the CaretPosition attribute is CaretPosition_Unknown.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

UIAutomationCore.h (include UIAutomation.h)

 

 

Community Additions

Show:
© 2014 Microsoft