Home
last modified time | relevance | path

Searched refs:TextRange (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_event_hub.h242 TextRange GetRangeBefore() const;
245 TextRange GetRangeAfter() const;
253 rangeBefore_ = TextRange(); in reset()
254 rangeAfter_ = TextRange(); in reset()
262 TextRange rangeBefore_;
263 TextRange rangeAfter_;
273 TextRange GetRangeBefore() const;
275 void SetRangeAfter(const TextRange& range);
276 TextRange GetRangeAfter() const;
282 TextRange rangeBefore_;
[all …]
H A Drich_editor_event_hub.cpp419 void RichEditorChangeValue::SetRangeBefore(const TextRange& rangeBefore) in SetRangeBefore()
424 TextRange RichEditorChangeValue::GetRangeBefore() const in GetRangeBefore()
429 void RichEditorChangeValue::SetRangeAfter(const TextRange& rangeAfter) in SetRangeAfter()
434 TextRange RichEditorChangeValue::GetRangeAfter() const in GetRangeAfter()
439 void StyledStringChangeValue::SetRangeBefore(const TextRange& range) in SetRangeBefore()
444 TextRange StyledStringChangeValue::GetRangeBefore() const in GetRangeBefore()
449 void StyledStringChangeValue::SetRangeAfter(const TextRange& range) in SetRangeAfter()
454 TextRange StyledStringChangeValue::GetRangeAfter() const in GetRangeAfter()
507 void RichEditorEventHub::SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) in SetOnDidIMEInput()
512 void RichEditorEventHub::FireOnDidIMEInput(const TextRange& range) in FireOnDidIMEInput()
H A Drich_editor_model_ng.h32 void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) override;
62 …static void SetOnDidIMEInput(FrameNode* frameNode, std::function<void(const TextRange&)>&& callbac…
H A Drich_editor_model_ng.cpp144 void RichEditorModelNG::SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) in SetOnDidIMEInput()
161 void RichEditorModelNG::SetOnDidIMEInput(FrameNode* frameNode, std::function<void(const TextRange&)… in SetOnDidIMEInput()
H A Drich_editor_model.h344 virtual void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) = 0;
H A Drich_editor_pattern.cpp5350 TextRange onDidIMEInputRange{ caretPosition_, caretPosition_ + insertValueLength }; in AfterIMEInsertValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/
H A Dtext_range.h23 struct TextRange { struct
27 bool operator==(const TextRange& other) const argument
32 bool operator!=(const TextRange& other) const
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-text-common.md97 getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array…
109 | range | [TextRange](#textrange12)| 是 | 需要获取的区域的文本区间。 |
240 onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean
253 | range | [TextRange](#textrange12) | 是 | 选中的文本信息。 |
261 ## TextRange<sup>12+</sup>
397 type OnDidChangeCallback = (rangeBefore: TextRange, rangeAfter: TextRange) => void
409 | rangeBefore | [TextRange](#textrange12) | 是 | 文本变化前将要被替换的文本范围。 |
410 | rangeAfter | [TextRange](#textrange12) | 是 | 文本变化后新增内容的文本范围。 |
435 | range | TextRange | 是 | 即将被替换的属性字符串子串在原字符串中的范围。 |
H A Dts-basic-components-richeditor.md392 onDidIMEInput(callback:Callback\<TextRange>)
406 | callback | Callback\<[TextRange](ts-text-common.md#textrange12)\> | 是 | TextRange为输入法本次输入内容的范围。<b…
830 | rangeBefore | [TextRange](ts-text-common.md#textrange12) | 是 | 即将被替换内容的开始和结束索引。 |
4063 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
4520 onMenuItemClicked(menuItem: TextMenuItem, textRange: TextRange) {
4538 onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => {
4584 .onDidIMEInput((value: TextRange) => {
H A Dts-basic-components-text.md1689 let range: TextRange = { start: 0, end: 1 }
1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-search.md1370 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-textarea.md1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-textinput.md2207 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-text-common.md97 getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array…
109 | range | [TextRange](#textrange12)| Yes | Text range for which to obtain the area informati…
240 onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean
253 | range | [TextRange](#textrange12) | Yes | Selected text.|
261 ## TextRange<sup>12+</sup>
397 type OnDidChangeCallback = (rangeBefore: TextRange, rangeAfter: TextRange) => void
409 | rangeBefore | [TextRange](#textrange12) | Yes| Range of the text to be changed.|
410 | rangeAfter | [TextRange](#textrange12) | Yes| Range of the text added.|
435 | range | TextRange | Yes| Range of the styled string to be replaced in the original string.|
H A Dts-basic-components-richeditor.md394 onDidIMEInput(callback:Callback\<TextRange>)
408 …Callback\<[TextRange](ts-text-common.md#textrange12)\> | Yes| Callback invoked when text input in …
831 | rangeBefore | [TextRange](ts-text-common.md#textrange12) | Yes | Start and end indexes of the c…
4051 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
4510 onMenuItemClicked(menuItem: TextMenuItem, textRange: TextRange) {
4528 onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => {
4575 .onDidIMEInput((value: TextRange) => {
H A Dts-basic-components-text.md1689 let range: TextRange = { start: 0, end: 1 }
1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-search.md1371 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-textarea.md1769 …CreateMenu: this.onCreateMenu, onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => {
H A Dts-basic-components-textinput.md2210 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dricheditor_model_impl.h29 void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) override {} in SetOnDidIMEInput()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-common-components-richeditor.md293 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_richeditor.h40 static JSRef<JSVal> CreateJsOnDidIMEInput(const TextRange& textRange);
H A Djs_richeditor.cpp500 …AceType::MakeRefPtr<JsEventFunction<TextRange, 1>>(JSRef<JSFunc>::Cast(args[0]), CreateJsOnDidIMEI… in SetOnDidIMEInput()
502 const TextRange& textRange) { in SetOnDidIMEInput()
692 JSRef<JSVal> JSRichEditor::CreateJsOnDidIMEInput(const TextRange& range) in CreateJsOnDidIMEInput()
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-common-components-richeditor.md240 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/
H A Dts-basic-components-web.md2633 onMenuItemClick(menuItem: TextMenuItem, textRange: TextRange): boolean {

12