public override void WriteHTML(WriterHtmlDocumentWriter writer)
        {
            if (intListStyle == ParagraphListStyle.BulletedList)
            {
                writer.WriteStartElement("ul");
            }
            else
            {
                writer.WriteStartElement("ol");
            }
            DomElementList list = WriterUtils.MergeElements(this.Elements, false);

            if (list != null && list.Count > 0)
            {
                foreach (DomElement element in list)
                {
                    if (writer.IncludeSelectionOndly == false ||
                        element.HasSelection)
                    {
                        element.WriteHTML(writer);
                    }
                }
            }
            writer.WriteEndElement();
        }
Exemple #2
0
        protected virtual void WriteContentHTML(WriterHtmlDocumentWriter writer)
        {
            DomElementList list = WriterUtils.MergeElements(
                this.Elements,
                true);

            if (list != null && list.Count > 0)
            {
                foreach (DomElement element in list)
                {
                    if (writer.IncludeSelectionOndly == false ||
                        element.HasSelection)
                    {
                        element.WriteHTML(writer);
                    }
                }
            }
        }