/** * Clones the BaseComponent without formatting and returns the clone. * * @return The duplicate of this BaseComponent * @deprecated API use discouraged, use traditional duplicate */ public BaseComponent DuplicateWithoutFormatting() { BaseComponent component = Duplicate(); component.Retain(FormatRetention.None); return(component); }
/** * Retains only the specified formatting. Text is not modified. * * @param retention the formatting to retain * @return this ComponentBuilder for chaining */ public ComponentBuilder Retain(FormatRetention retention) { _current.Retain(retention); return(this); }