[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_RENDER_MODE_get")]
public static extern int RenderModeGet();
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_ELLIPSIS_MODE_get")]
+ public static extern int EllipsisModeGet();
+
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_IS_SCROLLING_get")]
+ public static extern int IsScrollingGet();
+
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextLabel_Property_MANUAL_RENDERED_get")]
public static extern int ManualRenderedGet();
}
}
+ /// <summary>
+ /// The EllipsisMode property.
+ /// </summary>
+ /// <remarks>
+ /// This property is valid when Ellipsis is true.<br />
+ /// Truncate(default), if the text exceeds the layout, it will be truncated with an ellipsis.<br />
+ /// AutoScroll, if the text exceeds the layout, it will be auto scroll animated.<br />
+ /// EllipsisMode.AutoScroll shares the properties of AutoScroll Animation: AutoScrollSpeed, AutoScrollLoopCount, AutoScrollGap, AutoScrollLoopDelay<br />
+ /// EllipsisMode.AutoScroll forces the setting of AutoScrollStopMode to Immediate.<br />
+ /// To dynamically turn off EllipsisMode.AutoScroll, set EllipsisMode.Truncate.<br />
+ /// Cannot be used simultaneously with EnableAutoScroll.<br />
+ /// This property supports get/set operations in XAML scripts, but does not support XAML Data Binding functionality.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public EllipsisMode EllipsisMode
+ {
+ get
+ {
+ return (EllipsisMode)Object.InternalGetPropertyInt(this.SwigCPtr, TextLabel.Property.EllipsisMode);
+ }
+ set
+ {
+ Object.InternalSetPropertyInt(this.SwigCPtr, TextLabel.Property.EllipsisMode, (int)value);
+ NotifyPropertyChanged();
+ }
+ }
+
+ /// <summary>
+ /// Whether the auto scroll animation is playing or not.
+ /// </summary>
+ /// <remarks>
+ /// This property supports get operations in XAML scripts, but does not support XAML Data Binding functionality.
+ /// </remarks>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsScrolling
+ {
+ get
+ {
+ bool isScrolling = false;
+ using (var propertyValue = GetProperty(TextLabel.Property.IsScrolling))
+ {
+ propertyValue.Get(out isScrolling);
+ }
+ return isScrolling;
+ }
+ }
+
/// <summary>
/// The AutoScrollLoopDelay property.<br />
/// The amount of time to delay the starting time of auto scrolling and further loops.<br />
internal static readonly int RenderMode = Interop.TextLabel.RenderModeGet();
internal static readonly int ManualRendered = Interop.TextLabel.ManualRenderedGet();
internal static readonly int AsyncLineCount = Interop.TextLabel.AsyncLineCountGet();
+ internal static readonly int EllipsisMode = Interop.TextLabel.EllipsisModeGet();
+ internal static readonly int IsScrolling = Interop.TextLabel.IsScrollingGet();
internal static void Preload()
Middle
}
+ /// <summary>
+ /// Enumeration for the ellipsis mode of text.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum EllipsisMode
+ {
+ /// <summary>
+ /// When the text is long, it will be truncated with ellipsis.
+ /// </summary>
+ Truncate,
+
+ /// <summary>
+ /// When the text is long, it will automatically scroll with animation.
+ /// </summary>
+ AutoScroll
+ }
+
/// <summary>
/// Enumeration type for the font's slant.
/// </summary>