[NUI] replace field declaration with property (#1701)
[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         static CheckBox() { }
26         /// <summary>
27         /// Creates a new instance of a CheckBox.
28         /// </summary>
29         /// <since_tizen> 6 </since_tizen>
30         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
31         [EditorBrowsable(EditorBrowsableState.Never)]
32         public CheckBox() : base() { }
33
34         /// <summary>
35         /// Creates a new instance of a CheckBox with style.
36         /// </summary>
37         /// <param name="style"></param>
38         /// <since_tizen> 6 </since_tizen>
39         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
40         [EditorBrowsable(EditorBrowsableState.Never)]
41         public CheckBox(string style) : base(style) { }
42
43         /// <summary>
44         /// Creates a new instance of a CheckBox with style.
45         /// </summary>
46         /// <param name="buttonStyle"></param>
47         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
48         [EditorBrowsable(EditorBrowsableState.Never)]
49         public CheckBox(ButtonStyle buttonStyle) : base(buttonStyle) { }
50
51         /// <summary>
52         /// Get CheckBoxGroup to which this CheckBox belong.
53         /// </summary>
54         /// <since_tizen> 6 </since_tizen>
55         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
56         [EditorBrowsable(EditorBrowsableState.Never)]
57         public CheckBoxGroup ItemGroup
58         {
59             get
60             {
61                 return base.ItemGroup as CheckBoxGroup;
62             }
63             internal set
64             {
65                 base.ItemGroup = value;
66             }
67         }
68     }
69 }