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()); }
public RichText(string str, RTStyle rtStyle) : this(str, rtStyle.getTextStyle(), rtStyle.getColor()) { }