本文整理匯總了C#中Category.Append方法的典型用法代碼示例。如果您正苦於以下問題:C# Category.Append方法的具體用法?C# Category.Append怎麽用?C# Category.Append使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Category
的用法示例。
在下文中一共展示了Category.Append方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: GenerateGlossaryDocumentPart1Content
// Generates content of glossaryDocumentPart1.
private void GenerateGlossaryDocumentPart1Content(GlossaryDocumentPart glossaryDocumentPart1)
{
GlossaryDocument glossaryDocument1 = new GlossaryDocument(){ MCAttributes = new MarkupCompatibilityAttributes(){ Ignorable = "w14 w15 wp14" } };
glossaryDocument1.AddNamespaceDeclaration("wpc", "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas");
glossaryDocument1.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
glossaryDocument1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
glossaryDocument1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
glossaryDocument1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
glossaryDocument1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
glossaryDocument1.AddNamespaceDeclaration("wp14", "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing");
glossaryDocument1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
glossaryDocument1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
glossaryDocument1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
glossaryDocument1.AddNamespaceDeclaration("w14", "http://schemas.microsoft.com/office/word/2010/wordml");
glossaryDocument1.AddNamespaceDeclaration("w15", "http://schemas.microsoft.com/office/word/2010/11/wordml");
glossaryDocument1.AddNamespaceDeclaration("wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup");
glossaryDocument1.AddNamespaceDeclaration("wpi", "http://schemas.microsoft.com/office/word/2010/wordprocessingInk");
glossaryDocument1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
glossaryDocument1.AddNamespaceDeclaration("wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape");
DocParts docParts1 = new DocParts();
DocPart docPart1 = new DocPart();
DocPartProperties docPartProperties1 = new DocPartProperties();
DocPartName docPartName1 = new DocPartName(){ Val = "DefaultPlaceholder_1081868558" };
Category category1 = new Category();
Name name1 = new Name(){ Val = "General" };
Gallery gallery1 = new Gallery(){ Val = DocPartGalleryValues.Placeholder };
category1.Append(name1);
category1.Append(gallery1);
DocPartTypes docPartTypes1 = new DocPartTypes();
DocPartType docPartType1 = new DocPartType(){ Val = DocPartValues.SdtPlaceholder };
docPartTypes1.Append(docPartType1);
Behaviors behaviors1 = new Behaviors();
Behavior behavior1 = new Behavior(){ Val = DocPartBehaviorValues.Content };
behaviors1.Append(behavior1);
DocPartId docPartId1 = new DocPartId(){ Val = "{F039DA22-FC7F-4FBD-92C2-651CCBF1B274}" };
docPartProperties1.Append(docPartName1);
docPartProperties1.Append(category1);
docPartProperties1.Append(docPartTypes1);
docPartProperties1.Append(behaviors1);
docPartProperties1.Append(docPartId1);
DocPartBody docPartBody1 = new DocPartBody();
Paragraph paragraph19 = new Paragraph(){ RsidParagraphAddition = "00930812", RsidRunAdditionDefault = "00B75576" };
Run run25 = new Run(){ RsidRunProperties = "003E0DED" };
RunProperties runProperties43 = new RunProperties();
RunStyle runStyle3 = new RunStyle(){ Val = "PlaceholderText" };
runProperties43.Append(runStyle3);
Text text25 = new Text();
text25.Text = "Click here to enter text.";
run25.Append(runProperties43);
run25.Append(text25);
paragraph19.Append(run25);
docPartBody1.Append(paragraph19);
docPart1.Append(docPartProperties1);
docPart1.Append(docPartBody1);
DocPart docPart2 = new DocPart();
DocPartProperties docPartProperties2 = new DocPartProperties();
DocPartName docPartName2 = new DocPartName(){ Val = "DefaultPlaceholder_1081868562" };
Category category2 = new Category();
Name name2 = new Name(){ Val = "General" };
Gallery gallery2 = new Gallery(){ Val = DocPartGalleryValues.Placeholder };
category2.Append(name2);
category2.Append(gallery2);
DocPartTypes docPartTypes2 = new DocPartTypes();
DocPartType docPartType2 = new DocPartType(){ Val = DocPartValues.SdtPlaceholder };
docPartTypes2.Append(docPartType2);
Behaviors behaviors2 = new Behaviors();
Behavior behavior2 = new Behavior(){ Val = DocPartBehaviorValues.Content };
behaviors2.Append(behavior2);
DocPartId docPartId2 = new DocPartId(){ Val = "{00F3F2EC-0290-443B-9815-66648EE1ADF9}" };
docPartProperties2.Append(docPartName2);
docPartProperties2.Append(category2);
//.........這裏部分代碼省略.........
示例2: GenerateGlossaryDocumentPart1Content
// Generates content of glossaryDocumentPart1.
private void GenerateGlossaryDocumentPart1Content(GlossaryDocumentPart glossaryDocumentPart1)
{
GlossaryDocument glossaryDocument1 = new GlossaryDocument();
glossaryDocument1.AddNamespaceDeclaration("ve", "http://schemas.openxmlformats.org/markup-compatibility/2006");
glossaryDocument1.AddNamespaceDeclaration("o", "urn:schemas-microsoft-com:office:office");
glossaryDocument1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
glossaryDocument1.AddNamespaceDeclaration("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
glossaryDocument1.AddNamespaceDeclaration("v", "urn:schemas-microsoft-com:vml");
glossaryDocument1.AddNamespaceDeclaration("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
glossaryDocument1.AddNamespaceDeclaration("w10", "urn:schemas-microsoft-com:office:word");
glossaryDocument1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
glossaryDocument1.AddNamespaceDeclaration("wne", "http://schemas.microsoft.com/office/word/2006/wordml");
DocParts docParts1 = new DocParts();
DocPart docPart1 = new DocPart();
DocPartProperties docPartProperties1 = new DocPartProperties();
DocPartName docPartName1 = new DocPartName() { Val = "DefaultPlaceholder_22675703" };
Category category1 = new Category();
Name name1 = new Name() { Val = "General" };
Gallery gallery1 = new Gallery() { Val = DocPartGalleryValues.Placeholder };
category1.Append(name1);
category1.Append(gallery1);
DocPartTypes docPartTypes1 = new DocPartTypes();
DocPartType docPartType1 = new DocPartType() { Val = DocPartValues.SdtPlaceholder };
docPartTypes1.Append(docPartType1);
Behaviors behaviors1 = new Behaviors();
Behavior behavior1 = new Behavior() { Val = DocPartBehaviorValues.Content };
behaviors1.Append(behavior1);
DocPartId docPartId1 = new DocPartId() { Val = "{2B92B0C5-D732-4214-9E3C-19A9672429AB}" };
docPartProperties1.Append(docPartName1);
docPartProperties1.Append(category1);
docPartProperties1.Append(docPartTypes1);
docPartProperties1.Append(behaviors1);
docPartProperties1.Append(docPartId1);
DocPartBody docPartBody1 = new DocPartBody();
Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "00C275C8", RsidRunAdditionDefault = "00BB6D8B" };
Run run16 = new Run() { RsidRunProperties = "009C61D3" };
RunProperties runProperties1 = new RunProperties();
RunStyle runStyle1 = new RunStyle() { Val = "PlaceholderText" };
runProperties1.Append(runStyle1);
Text text16 = new Text();
text16.Text = "Click here to enter text.";
run16.Append(runProperties1);
run16.Append(text16);
paragraph18.Append(run16);
docPartBody1.Append(paragraph18);
docPart1.Append(docPartProperties1);
docPart1.Append(docPartBody1);
docParts1.Append(docPart1);
glossaryDocument1.Append(docParts1);
glossaryDocumentPart1.GlossaryDocument = glossaryDocument1;
}