[NUI] Sync with dalihub (#969)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / CheckBox.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 using System.ComponentModel;
18
19 namespace Tizen.NUI.Components
20 {
21     /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
22     [EditorBrowsable(EditorBrowsableState.Never)]
23     public class CheckBox : SelectButton
24     {
25         /// <summary>
26         /// Creates a new instance of a CheckBox.
27         /// </summary>
28         /// <since_tizen> 6 </since_tizen>
29         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
30         [EditorBrowsable(EditorBrowsableState.Never)]
31         public CheckBox() : base() { }
32         /// <summary>
33         /// Creates a new instance of a CheckBox with style.
34         /// </summary>
35         /// <param name="style"></param>
36         /// <since_tizen> 6 </since_tizen>
37         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
38         [EditorBrowsable(EditorBrowsableState.Never)]
39         public CheckBox(string style) : base(style) { }
40         /// <summary>
41         /// Creates a new instance of a CheckBox with attributes.
42         /// </summary>
43         /// <param name="attrs"></param>
44         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
45         [EditorBrowsable(EditorBrowsableState.Never)]
46         public CheckBox(SelectButtonAttributes attrs) : base(attrs) { }
47
48         /// <summary>
49         /// Get CheckBoxGroup to which this CheckBox belong.
50         /// </summary>
51         /// <since_tizen> 6 </since_tizen>
52         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
53         [EditorBrowsable(EditorBrowsableState.Never)]
54         public CheckBoxGroup ItemGroup
55         {
56             get
57             {
58                 return itemGroup as CheckBoxGroup;
59             }
60             internal set
61             {
62                 itemGroup = value;
63             }
64         }
65     }
66 }