[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_PLACEHOLDER_get")]
public static extern int TextEditor_Property_PLACEHOLDER_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextEditor_Property_LINE_WRAP_MODE_get")]
+ public static extern int TextEditor_Property_LINE_WRAP_MODE_get();
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextField_Property_HIDDEN_INPUT_SETTINGS_get")]
public static extern int TextField_Property_HIDDEN_INPUT_SETTINGS_get();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get")]
public static extern int TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_LINE_COUNT_get")]
+ public static extern int TextLabel_Property_LINE_COUNT_get();
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_LINE_WRAP_MODE_get")]
+ public static extern int TextLabel_Property_LINE_WRAP_MODE_get();
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_HIDDENINPUT_PROPERTY_MODE_get")]
public static extern int HIDDENINPUT_PROPERTY_MODE_get();
internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get();
internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextEditor_Property_ENABLE_SELECTION_get();
internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextEditor_Property_PLACEHOLDER_get();
-
+ internal static readonly int LINE_WRAP_MODE = NDalicManualPINVOKE.TextEditor_Property_LINE_WRAP_MODE_get();
}
internal class InputStyle
}
}
+ /// <summary>
+ /// LineWrapMode property.<br>
+ /// line wrap mode when the text lines over layout width.<br>
+ /// </summary>
+ public LineWrapMode LineWrapMode
+ {
+ get
+ {
+ string temp;
+ if(GetProperty(TextEditor.Property.LINE_WRAP_MODE).Get(out temp) == false)
+ {
+ NUILog.Error("LineWrapMode get error!");
+ }
+ switch (temp)
+ {
+ case "WORD":
+ return LineWrapMode.Word;
+ case "CHARACTER":
+ return LineWrapMode.Character;
+ default:
+ return LineWrapMode.Word;
+ }
+ }
+ set
+ {
+ string temp = "";
+ switch (value)
+ {
+ case LineWrapMode.Word:
+ {
+ temp = "WORD";
+ break;
+ }
+ case LineWrapMode.Character:
+ {
+ temp = "CHARACTER";
+ break;
+ }
+ }
+ SetProperty(TextEditor.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue(temp));
+ }
+ }
+
}
}
internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextLabel_Property_ELLIPSIS_get();
internal static readonly int AUTO_SCROLL_STOP_MODE = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_STOP_MODE_get();
internal static readonly int AUTO_SCROLL_LOOP_DELAY = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
- internal static readonly int LINE_COUNT = OUTLINE + 5;
+ internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextLabel_Property_LINE_COUNT_get();
+ internal static readonly int LINE_WRAP_MODE = NDalicManualPINVOKE.TextLabel_Property_LINE_WRAP_MODE_get();
}
/// <summary>
}
}
+ /// <summary>
+ /// LineWrapMode property.<br>
+ /// line wrap mode when the text lines over layout width.<br>
+ /// </summary>
+ public LineWrapMode LineWrapMode
+ {
+ get
+ {
+ string temp;
+ if(GetProperty(TextLabel.Property.LINE_WRAP_MODE).Get(out temp) == false)
+ {
+ NUILog.Error("LineWrapMode get error!");
+ }
+ switch (temp)
+ {
+ case "WORD":
+ return LineWrapMode.Word;
+ case "CHARACTER":
+ return LineWrapMode.Character;
+ default:
+ return LineWrapMode.Word;
+ }
+ }
+ set
+ {
+ string temp = "";
+ switch (value)
+ {
+ case LineWrapMode.Word:
+ {
+ temp = "WORD";
+ break;
+ }
+ case LineWrapMode.Character:
+ {
+ temp = "CHARACTER";
+ break;
+ }
+ }
+ SetProperty(TextLabel.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue(temp));
+ }
+ }
+
}
}
Finished
}
+ /// <summary>
+ /// An enum of line wrap mode of text controls.
+ /// </summary>
+ public enum LineWrapMode
+ {
+ /// <summary>
+ /// Word mode will move word to next line
+ /// </summary>
+ Word,
+
+ /// <summary>
+ /// character will move character by character to next line
+ /// </summary>
+ Character
+ }
+
}