예제 #1
0
 public void SetTrimming(Xwt.Drawing.TextTrimming textTrimming)
 {
     if (this.textTrimming != textTrimming)
     {
         this.textTrimming = textTrimming;
         if (formattedText != null)
         {
             ApplyTrimming();
         }
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
        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;
            }
        }
예제 #4
0
        public override void SetTrimming(object backend, Xwt.Drawing.TextTrimming textTrimming)
        {
            var t = (TextLayoutBackend)backend;

            t.SetTrimming(textTrimming);
        }