Release 4.0.0-preview1-00051
[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 Attribute Type
25     /// </summary>
26     public enum AttributeType
27     {
28         /// <summary>
29         /// No attribute
30         /// </summary>
31         None,
32         /// <summary>
33         /// A font style attribute, e.g., underline, etc.
34         /// </summary>
35         FontStyle
36     };
37     /// <summary>
38     /// This class represents the attributes for preedit string.
39     /// </summary>
40     public class PreEditAttribute
41     {
42         /// <summary>
43         /// The start position in the string of this attribute
44         /// </summary>
45         public uint Start
46         {
47             get;
48             set;
49         }
50
51         /// <summary>
52         /// The character length of this attribute, the range is [Start, Start+Length]
53         /// </summary>
54         public uint Length
55         {
56             get;
57             set;
58         }
59
60         /// <summary>
61         /// The type of this attribute
62         /// </summary>
63         public AttributeType Type
64         {
65             get;
66             set;
67         }
68
69         /// <summary>
70         /// The value of this attribute
71         /// </summary>
72         public uint Value
73         {
74             get;
75             set;
76         }
77     }
78 }