Esempio n. 1
0
        private _HtmlElement(HtmlElementProperties elementProperties, _HtmlElement cloneFrom)
        {
            Must.Assertion
            .AssertArgumentNotNull(elementProperties, nameof(elementProperties));

            _ElementProperties = elementProperties;

            _Annotations = new _HtmlAnnotationCollection(ChildrensProof, this, cloneFrom?._Annotations);
            _Attributes  = new _HtmlAttributeCollection(ChildrensProof, this, cloneFrom?._Attributes);
        }
Esempio n. 2
0
 public static IHtmlElement Create(HtmlElementProperties elementProperties) => new _HtmlElement(elementProperties, null);