EditContext: characterBoundsRangeStart property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("EditContext API")}}{{SeeCompatTable}}

The **characterBoundsRangeStart** read-only property of the {{domxref("EditContext")}} interface indicates the index of the character, within the editable text content, that corresponds to the first item in the {{domxref("EditContext.characterBounds()", "characterBounds")}} array.

For example, if the EditContent contains the characters abc, and if characterBoundRangeStart is 1, the first item in the characterBounds array contains the bounds for the character b.

Value

A {{jsxref("Number")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}