string PopupEntryMaxLengthFilter(EEntry entry, string s) { if (entry.Text.Length < Element.MaxLength) return s; return null; }
string MaxLengthFilter(ElmSharp.Entry entry, string s) { if (entry.Text.Length < Element.MaxLength) { return(s); } return(null); }
public static ESize GetTextBlockNativeSize(this EEntry entry) { var textPart = entry.EdjeObject[ThemeConstants.Common.Parts.Text]; if (textPart == null) { Log.Error("There is no elm.text part"); return(new ESize(0, 0)); } return(textPart.TextBlockNativeSize); }
public static ESize GetPlaceHolderTextBlockNativeSize(this EEntry entry) { var textPart = entry.EdjeObject[ThemeConstants.Entry.Parts.PlaceHolderText]; if (textPart == null) { Log.Error("There is no elm.guide part"); return(new ESize(0, 0)); } return(textPart.TextBlockNativeSize); }
public static void SetVerticalPlaceHolderTextAlignment(this EEntry entry, double valign) { entry.SetVerticalTextAlignment(ThemeConstants.Entry.Parts.PlaceHolderText, valign); }
public static void SetVerticalTextAlignment(this EEntry entry, double valign) { entry.SetVerticalTextAlignment(ThemeConstants.Common.Parts.Text, valign); }
public static bool SetPlaceHolderTextPart(this EEntry entry, string text) { return(entry.SetPartText(ThemeConstants.Entry.Parts.PlaceHolderText, text)); }
/// <summary> /// Gets the internal text representation of the entry. /// </summary> /// <returns>The internal text representation.</returns> string GetInternalText() { return(EEntry.ConvertMarkupToUtf8(base.Text)); }
public static void GetSelectRegion(this EEntry entry, out int start, out int end) { elm_entry_select_region_get(entry.RealHandle, out start, out end); }