[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Uix.InputMethod / Tizen.Uix.InputMethod / PreEditAttribute.cs
1 /*
2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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;
18 using System.Collections.Generic;
19 using System.Text;
20
21 namespace Tizen.Uix.InputMethod
22 {
23     /// <summary>
24     /// Enumeration for the attribute types.
25     /// </summary>
26     /// <since_tizen> 4 </since_tizen>
27     public enum AttributeType
28     {
29         /// <summary>
30         /// No attribute.
31         /// </summary>
32         None,
33         /// <summary>
34         /// A font style attribute, for example, underline, etc.
35         /// </summary>
36         FontStyle
37     };
38     /// <summary>
39     /// This class represents the attributes for the pre-edit string.
40     /// </summary>
41     /// <since_tizen> 4 </since_tizen>
42     public class PreEditAttribute
43     {
44         /// <summary>
45         /// The start position in the string of this attribute.
46         /// </summary>
47         /// <since_tizen> 4 </since_tizen>
48         public uint Start
49         {
50             get;
51             set;
52         }
53
54         /// <summary>
55         /// The character length of this attribute, the range is [Start, Start+Length].
56         /// </summary>
57         /// <since_tizen> 4 </since_tizen>
58         public uint Length
59         {
60             get;
61             set;
62         }
63
64         /// <summary>
65         /// The type of this attribute.
66         /// </summary>
67         /// <since_tizen> 4 </since_tizen>
68         public AttributeType Type
69         {
70             get;
71             set;
72         }
73
74         /// <summary>
75         /// The value of this attribute.
76         /// </summary>
77         /// <since_tizen> 4 </since_tizen>
78         public uint Value
79         {
80             get;
81             set;
82         }
83     }
84 }