private _HtmlText(HtmlTextProperties textProperties, _HtmlText cloneFrom) { Must.Assertion .AssertArgumentNotNull(textProperties, nameof(textProperties)); _TextProperties = textProperties; _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations); }
public static IHtmlText Create(HtmlTextProperties textProperties) => new _HtmlText(textProperties, null);