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

CustomizeFootNoteLabel() public static method

public static CustomizeFootNoteLabel ( ) : void
return void
        public static void CustomizeFootNoteLabel()
        {
            // ExStart:CustomizeFootNoteLabel
            // 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");
            // Specify custom label for FootNote
            text.FootNote.Text = " Aspose(2015)";
            // Add TextFragment to paragraphs collection of first page of document
            page.Paragraphs.Add(text);

            dataDir = dataDir + "CustomizeFootNoteLabel_out.pdf";
            // ExEnd:CustomizeFootNoteLabel
            Console.WriteLine("\nFootNote label customized successfully.\nFile saved at " + dataDir);
        }
        public static void AddImageAndTable()