本文整理汇总了C#中Comments.AddNamespaceDeclaration方法的典型用法代码示例。如果您正苦于以下问题:C# Comments.AddNamespaceDeclaration方法的具体用法?C# Comments.AddNamespaceDeclaration怎么用?C# Comments.AddNamespaceDeclaration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Comments
的用法示例。
在下文中一共展示了Comments.AddNamespaceDeclaration方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateWordprocessingCommentsPart1Content
// Generates content of wordprocessingCommentsPart1.
private void GenerateWordprocessingCommentsPart1Content(WordprocessingCommentsPart wordprocessingCommentsPart1)
{
Comments comments1 = new Comments(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 wp14" } };
comments1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
comments1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
comments1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
comments1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
comments1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
comments1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
comments1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
comments1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
comments1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
comments1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
comments1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
comments1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2012/wordml");
comments1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
comments1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
comments1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
comments1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
Comment comment1 = new Comment(){ Initials = "M.T", Author = "Masaki Tamura (Pasona Tech)", Date = System.Xml.XmlConvert.ToDateTime("2012-01-19T19:33:00Z", System.Xml.XmlDateTimeSerializationMode.RoundtripKind), Id = "1" };
Paragraph paragraph3 = new Paragraph(){ RsidParagraphAddition = "009423EF", RsidRunAdditionDefault = "009423EF", ParagraphId = "549EEC1D", TextId = "77777777" };
ParagraphProperties paragraphProperties1 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId(){ Val = "a4" };
paragraphProperties1.Append(paragraphStyleId1);
Run run6 = new Run();
RunProperties runProperties6 = new RunProperties();
RunStyle runStyle4 = new RunStyle(){ Val = "a3" };
runProperties6.Append(runStyle4);
AnnotationReferenceMark annotationReferenceMark1 = new AnnotationReferenceMark();
run6.Append(runProperties6);
run6.Append(annotationReferenceMark1);
Run run7 = new Run();
RunProperties runProperties7 = new RunProperties();
RunFonts runFonts6 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia };
runProperties7.Append(runFonts6);
Text text3 = new Text();
text3.Text = "Comment1";
run7.Append(runProperties7);
run7.Append(text3);
paragraph3.Append(paragraphProperties1);
paragraph3.Append(run6);
paragraph3.Append(run7);
comment1.Append(paragraph3);
Comment comment2 = new Comment(){ Initials = "M.T", Author = "Masaki Tamura (Pasona Tech)", Date = System.Xml.XmlConvert.ToDateTime("2012-01-19T19:33:00Z", System.Xml.XmlDateTimeSerializationMode.RoundtripKind), Id = "2" };
Paragraph paragraph4 = new Paragraph(){ RsidParagraphAddition = "009423EF", RsidRunAdditionDefault = "009423EF", ParagraphId = "6FD4E96D", TextId = "77777777" };
ParagraphProperties paragraphProperties2 = new ParagraphProperties();
ParagraphStyleId paragraphStyleId2 = new ParagraphStyleId(){ Val = "a4" };
paragraphProperties2.Append(paragraphStyleId2);
Run run8 = new Run();
RunProperties runProperties8 = new RunProperties();
RunStyle runStyle5 = new RunStyle(){ Val = "a3" };
runProperties8.Append(runStyle5);
AnnotationReferenceMark annotationReferenceMark2 = new AnnotationReferenceMark();
run8.Append(runProperties8);
run8.Append(annotationReferenceMark2);
Run run9 = new Run();
RunProperties runProperties9 = new RunProperties();
RunFonts runFonts7 = new RunFonts(){ Hint = FontTypeHintValues.EastAsia };
runProperties9.Append(runFonts7);
Text text4 = new Text();
text4.Text = "Comment2";
run9.Append(runProperties9);
run9.Append(text4);
paragraph4.Append(paragraphProperties2);
paragraph4.Append(run8);
paragraph4.Append(run9);
comment2.Append(paragraph4);
Comment comment3 = new Comment(){ Initials = "M.T", Author = "Masaki Tamura (Pasona Tech)", Date = System.Xml.XmlConvert.ToDateTime("2012-01-19T19:33:00Z", System.Xml.XmlDateTimeSerializationMode.RoundtripKind), Id = "3" };
Paragraph paragraph5 = new Paragraph(){ RsidParagraphAddition = "009423EF", RsidRunAdditionDefault = "009423EF", ParagraphId = "560BF315", TextId = "77777777" };
//.........这里部分代码省略.........