예제 #1
0
        public Task BeginWriteListItemAsync(ListIndexPath path, DocumentInstructionContextV1 context)
        {
            if (!context.IsFirstChild)
            {
                BeginParagraph();
            }

            AppendListIndex(context);

            return(Task.CompletedTask);
        }
        public Task BeginWriteListItemAsync(ListIndexPath path, DocumentInstructionContextV1 context)
        {
            DebugAssertTextFlushed(); // List cannot contain text elements

            if (!context.IsFirstChild)
            {
                WriteParagraphBreak();
            }

            _instructions.Add(new BeginWriteListItemInstruction(path));

            return(Task.CompletedTask);
        }
예제 #3
0
        public Task BeginWriteListItemAsync(ListIndexPath path, DocumentInstructionContextV1 context)
        {
            _pageXmlTextWriter.WriteStartElement("li");

            _pageXmlTextWriter.WriteStartElement("div");
            WriteClass("label");
            _pageXmlTextWriter.WriteString(path.Format());
            _pageXmlTextWriter.WriteFullEndElement();

            _pageXmlTextWriter.WriteStartElement("div");
            WriteClass("content");

            return(Task.CompletedTask);
        }