Skip to content

Latest commit

 

History

History
71 lines (58 loc) · 3.16 KB

ne-uiautomationcore-caretposition.md

File metadata and controls

71 lines (58 loc) · 3.16 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:uiautomationcore.CaretPosition
CaretPosition (uiautomationcore.h)
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.
CaretPosition
CaretPosition enumeration [Windows Accessibility]
CaretPosition_BeginningOfLine
CaretPosition_EndOfLine
CaretPosition_Unknown
uiautomationcore/CaretPosition
uiautomationcore/CaretPosition_BeginningOfLine
uiautomationcore/CaretPosition_EndOfLine
uiautomationcore/CaretPosition_Unknown
winauto.uiauto_CaretPosition
winauto\uiauto_CaretPosition.htm
WinAuto
9284DCBB-FC6A-4895-8AE6-58C47BB3A047
12/05/2018
CaretPosition, CaretPosition enumeration [Windows Accessibility], CaretPosition_BeginningOfLine, CaretPosition_EndOfLine, CaretPosition_Unknown, uiautomationcore/CaretPosition, uiautomationcore/CaretPosition_BeginningOfLine, uiautomationcore/CaretPosition_EndOfLine, uiautomationcore/CaretPosition_Unknown, winauto.uiauto_CaretPosition
uiautomationcore.h
UIAutomation.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Windows
19H1
CaretPosition
uiautomationcore/CaretPosition
c++
APIRef
kbSyntax
HeaderDef
UIAutomationCore.h
CaretPosition

CaretPosition enumeration

-description

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.

-enum-fields

-field CaretPosition_Unknown:0

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

-field CaretPosition_EndOfLine:1

The caret is at the end of a line.

-field CaretPosition_BeginningOfLine:2

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.