//// This code is part of Document Solutions for Word demos.// Copyright (c) MESCIUS inc. All rights reserved.//usingSystem.Drawing;usingGrapeCity.Documents.Word; namespaceDsWordWeb.Demos{// This example shows how to specify font fill and line styles.publicclassFontFillLine {publicGcWordDocumentCreateDocx() {var doc = newGcWordDocument();var style = doc.Styles.Add("My Style", StyleType.Paragraph); style.Font.Size = 48; // Specify gradient fill for the font:var fill = style.Font.Fill; fill.Type = FillType.Gradient;var gradient = fill.GradientFill; gradient.Angle = 64; gradient.Stops[0].Color.RGB = Color.LightSeaGreen; gradient.Stops[1].Color.RGB = Color.Orange; // Specify the outline for the font:var line = style.Font.Line; line.Width = 1; fill = line.Fill; fill.Type = FillType.Solid; fill.SolidFill.RGB = Color.Blue; // Add sample text with the new style: doc.Body.Paragraphs.Add("Font Fill and Line styles.", style); // Done:return doc; } }}