共用方式為


CoreTextRange 結構

定義

定義文字輸入控制項內的文字範圍。

public value class CoreTextRange
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct CoreTextRange
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct CoreTextRange
var coreTextRange = {
startCaretPosition : /* Your value */,
endCaretPosition : /* Your value */
}
Public Structure CoreTextRange
繼承
CoreTextRange
屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

名稱 Description
EndCaretPosition

應用程式字元位置 (ACP) 字詞中範圍的結束位置。

StartCaretPosition

應用程式字元位置 (ACP) 字詞中的範圍開始位置。

適用於