本文整理汇总了C#中Colors.Append方法的典型用法代码示例。如果您正苦于以下问题:C# Colors.Append方法的具体用法?C# Colors.Append怎么用?C# Colors.Append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Colors
的用法示例。
在下文中一共展示了Colors.Append方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GenerateWorkbookStylesPart1Content
// Generates content of workbookStylesPart1.
private void GenerateWorkbookStylesPart1Content(WorkbookStylesPart workbookStylesPart1)
{
Stylesheet stylesheet1 = new Stylesheet();
NumberingFormats numberingFormats1 = new NumberingFormats() { Count = (UInt32Value)2U };
NumberingFormat numberingFormat1 = new NumberingFormat() { NumberFormatId = (UInt32Value)166U, FormatCode = "_(* #,##0_);_(* \\(#,##0\\);_(* \"-\"??_);_(@_)" };
NumberingFormat numberingFormat2 = new NumberingFormat() { NumberFormatId = (UInt32Value)167U, FormatCode = "_-* #,##0\\ _€_-;\\-* #,##0\\ _€_-;_-* \"-\"??\\ _€_-;[email protected]_-" };
numberingFormats1.Append(numberingFormat1);
numberingFormats1.Append(numberingFormat2);
Fonts fonts1 = new Fonts() { Count = (UInt32Value)14U };
Font font1 = new Font();
FontSize fontSize1 = new FontSize() { Val = 10D };
FontName fontName1 = new FontName() { Val = "Arial" };
font1.Append(fontSize1);
font1.Append(fontName1);
Font font2 = new Font();
Bold bold1 = new Bold();
FontSize fontSize2 = new FontSize() { Val = 10D };
FontName fontName2 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering1 = new FontFamilyNumbering() { Val = 2 };
font2.Append(bold1);
font2.Append(fontSize2);
font2.Append(fontName2);
font2.Append(fontFamilyNumbering1);
Font font3 = new Font();
Bold bold2 = new Bold();
Italic italic1 = new Italic();
FontSize fontSize3 = new FontSize() { Val = 10D };
FontName fontName3 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering2 = new FontFamilyNumbering() { Val = 2 };
font3.Append(bold2);
font3.Append(italic1);
font3.Append(fontSize3);
font3.Append(fontName3);
font3.Append(fontFamilyNumbering2);
Font font4 = new Font();
Bold bold3 = new Bold();
FontSize fontSize4 = new FontSize() { Val = 10D };
Color color1 = new Color() { Indexed = (UInt32Value)9U };
FontName fontName4 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering3 = new FontFamilyNumbering() { Val = 2 };
font4.Append(bold3);
font4.Append(fontSize4);
font4.Append(color1);
font4.Append(fontName4);
font4.Append(fontFamilyNumbering3);
Font font5 = new Font();
FontSize fontSize5 = new FontSize() { Val = 10D };
Color color2 = new Color() { Indexed = (UInt32Value)9U };
FontName fontName5 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering4 = new FontFamilyNumbering() { Val = 2 };
font5.Append(fontSize5);
font5.Append(color2);
font5.Append(fontName5);
font5.Append(fontFamilyNumbering4);
Font font6 = new Font();
Bold bold4 = new Bold();
FontSize fontSize6 = new FontSize() { Val = 10D };
Color color3 = new Color() { Indexed = (UInt32Value)12U };
FontName fontName6 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering5 = new FontFamilyNumbering() { Val = 2 };
font6.Append(bold4);
font6.Append(fontSize6);
font6.Append(color3);
font6.Append(fontName6);
font6.Append(fontFamilyNumbering5);
Font font7 = new Font();
FontSize fontSize7 = new FontSize() { Val = 12D };
Color color4 = new Color() { Indexed = (UInt32Value)12U };
FontName fontName7 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering6 = new FontFamilyNumbering() { Val = 2 };
font7.Append(fontSize7);
font7.Append(color4);
font7.Append(fontName7);
font7.Append(fontFamilyNumbering6);
Font font8 = new Font();
Bold bold5 = new Bold();
FontSize fontSize8 = new FontSize() { Val = 9D };
FontName fontName8 = new FontName() { Val = "Arial" };
FontFamilyNumbering fontFamilyNumbering7 = new FontFamilyNumbering() { Val = 2 };
font8.Append(bold5);
//.........这里部分代码省略.........