Beispiel #1
0
        public string applyProp(RTStyle rtStyle)
        {
            Color?    newColor     = rtStyle.getColor();
            TextStyle?newTextStyle = rtStyle.getTextStyle();

            this._color     = newColor.Equals(null) ? this._color : (Color)newColor;
            this._textStyle = newTextStyle.Equals(null) ? this._textStyle : (TextStyle)newTextStyle;
            return(_ApplySelfProp());
        }
Beispiel #2
0
 public string surroundWithProp(RTStyle rtStyle)
 {
     this.str = this.richTxet;
     return(this.applyProp(rtStyle));
 }
Beispiel #3
0
 public RichText(string str, RTStyle rtStyle) : this(str, rtStyle.getTextStyle(), rtStyle.getColor())
 {
 }