Exemplo n.º 1
0
		public override void InsertAndDeleteParagraphBreak()
		{
			StTxtPara para0 = m_text1.ContentsOA.ParagraphsOS[0] as StTxtPara;
			TextBuilder tb = new TextBuilder(m_rtp.TextBuilder);
			tb.SelectNode(para0, 1);
			XmlNode newParaNodeAfterInsert = tb.InsertParagraphBreak(para0, tb.SelectedNode);
			m_rtp.AddResultingAnnotationState(newParaNodeAfterInsert);
			tb.DeleteParagraphBreak(para0);
			tb.SelectNode(para0, 1);
			XmlNode paraNodeAfterEdit = tb.SelectedNode;
			m_rtp.AddResultingAnnotationState(paraNodeAfterEdit);

			base.InsertAndDeleteParagraphBreak();
		}
Exemplo n.º 2
0
		public override void DeleteParagraphBreak()
		{
			StTxtPara para0 = m_text1.ContentsOA.ParagraphsOS[0] as StTxtPara;
			m_rtp.TextBuilder.SelectNode(null);
			TextBuilder tb = new TextBuilder(m_rtp.TextBuilder);
			ParagraphBuilder pb = tb.GetParagraphBuilder(para0.Hvo);

			tb.DeleteParagraphBreak(para0);
			XmlNode paraNodeAfterEdit = tb.SelectedNode;
			m_rtp.AddResultingAnnotationState(paraNodeAfterEdit);

			base.DeleteParagraphBreak();
		}