Aspose.Pdf.Examples.CSharp.AsposePDF.Text.FootAndEndNotes.CustomLineStyleForFootNote C# (CSharp) Method

CustomLineStyleForFootNote() public static method

public static CustomLineStyleForFootNote ( ) : void
return void
        public static void CustomLineStyleForFootNote()
        {
            // ExStart:CustomLineStyleForFootNote
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_Text();

            // Create Document instance
            Document doc = new Document();
            // Add page to pages collection of PDF
            Page page = doc.Pages.Add();
            // Create GraphInfo object
            Aspose.Pdf.GraphInfo graph = new Aspose.Pdf.GraphInfo();
            // Set line width as 2
            graph.LineWidth = 2;
            // Set the color for graph object
            graph.Color = Aspose.Pdf.Color.Red;
            // Set dash array value as 3
            graph.DashArray = new int[] { 3 };
            // Set dash phase value as 1
            graph.DashPhase = 1;
            // Set footnote line style for page as graph
            page.NoteLineStyle = graph;
            // Create TextFragment instance
            TextFragment text = new TextFragment("Hello World");
            // Set FootNote value for TextFragment
            text.FootNote = new Note("foot note for test text 1");
            // Add TextFragment to paragraphs collection of first page of document
            page.Paragraphs.Add(text);
            // Create second TextFragment
            text = new TextFragment("Aspose.Pdf for .NET");
            // Set FootNote for second text fragment
            text.FootNote = new Note("foot note for test text 2");
            // Add second text fragment to paragraphs collection of PDF file
            page.Paragraphs.Add(text);

            dataDir = dataDir + "CustomLineStyleForFootNote_out.pdf";

            // Save resulting PDF document.
            doc.Save(dataDir);
            // ExEnd:CustomLineStyleForFootNote
            Console.WriteLine("\nCustom line style defined successfully.\nFile saved at " + dataDir);
        }
        public static void CustomizeFootNoteLabel()