public void SetTrimming(Xwt.Drawing.TextTrimming textTrimming) { if (this.textTrimming != textTrimming) { this.textTrimming = textTrimming; if (formattedText != null) { ApplyTrimming(); } } }
public static SD.StringTrimming ToDrawingStringTrimming(this Xwt.Drawing.TextTrimming value) { if (value == Xwt.Drawing.TextTrimming.Word) { return(SD.StringTrimming.Word); } if (value == Xwt.Drawing.TextTrimming.WordElipsis) { return(SD.StringTrimming.EllipsisWord); } return(SD.StringTrimming.Word); }
public override void SetTrimming(object backend, Xwt.Drawing.TextTrimming textTrimming) { var t = (TextLayoutBackend)backend; switch (textTrimming) { case Xwt.Drawing.TextTrimming.WordElipsis: t.FormattedText.Trimming = System.Windows.TextTrimming.WordEllipsis; break; default: t.FormattedText.Trimming = System.Windows.TextTrimming.None; break; } }
public override void SetTrimming(object backend, Xwt.Drawing.TextTrimming textTrimming) { var t = (TextLayoutBackend)backend; t.SetTrimming(textTrimming); }