From 628e1a282a794c778104f96a445bee9878c85b5b Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Mon, 13 Sep 2021 14:11:27 +0900 Subject: [PATCH] [NUI] Make Text selection APIs public Signed-off-by: Bowon Ryu --- .../src/public/BaseComponents/TextEditor.cs | 16 ++++++---------- .../src/public/BaseComponents/TextField.cs | 22 ++++++---------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index 572bdfa..37986b8 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -1350,7 +1350,7 @@ namespace Tizen.NUI.BaseComponents /// /// The Selected Text property (read-only). /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string SelectedText { get @@ -1402,9 +1402,7 @@ namespace Tizen.NUI.BaseComponents /// /// The start index for selection. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public int SelectedTextStart { get @@ -1418,9 +1416,7 @@ namespace Tizen.NUI.BaseComponents /// /// The end index for selection. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public int SelectedTextEnd { get @@ -2044,7 +2040,7 @@ namespace Tizen.NUI.BaseComponents /// /// Select the whole text. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectWholeText() { Interop.TextEditor.SelectWholeText(SwigCPtr); @@ -2057,7 +2053,7 @@ namespace Tizen.NUI.BaseComponents /// /// The start index for selection. /// The end index for selection. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectText(int start, int end) { if (start < 0) @@ -2072,7 +2068,7 @@ namespace Tizen.NUI.BaseComponents /// /// Clear selection of the text. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectNone() { _ = Interop.TextEditor.SelectNone(SwigCPtr); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 330cda1..df0162d 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -1600,9 +1600,7 @@ namespace Tizen.NUI.BaseComponents /// /// The Selected Text property. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string SelectedText { get @@ -1616,9 +1614,7 @@ namespace Tizen.NUI.BaseComponents /// /// The start index for selection. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public int SelectedTextStart { get @@ -1632,9 +1628,7 @@ namespace Tizen.NUI.BaseComponents /// /// The end index for selection. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public int SelectedTextEnd { get @@ -2106,9 +2100,7 @@ namespace Tizen.NUI.BaseComponents /// /// Select the whole text. /// - /// 6 - /// This will be released at Tizen.NET API Level 5.5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectWholeText() { Interop.TextField.SelectWholeText(SwigCPtr); @@ -2121,7 +2113,7 @@ namespace Tizen.NUI.BaseComponents /// /// The start index for selection. /// The end index for selection. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectText(int start, int end) { if (start < 0) @@ -2136,9 +2128,7 @@ namespace Tizen.NUI.BaseComponents /// /// Clear selection of the text. /// - /// 8 - /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public void SelectNone() { _ = Interop.TextField.SelectNone(SwigCPtr); -- 2.7.4