Class HeaderFooters
Represents the HeaderFooters class.
Implements
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public sealed class HeaderFooters : CompositeNode, INode
Constructors
HeaderFooters()
Initializes a new instance of the HeaderFooters class.
Declaration
public HeaderFooters()
Properties
EvenFooter
Gets or sets the even page footer.
Declaration
public HeaderFooter EvenFooter { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The footer for the even pages. |
Examples
The following code example demonstrates how to add even page footer.
<!-- Defines the even page footer. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.EvenFooter>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>29 March 2016</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.EvenFooter>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the even page footer.
headerFooters.EvenFooter = new HeaderFooter();
ParagraphAdv footerParagraph = new ParagraphAdv();
SpanAdv footerSpan = new SpanAdv();
footerSpan.Text = "29 March 2016";
footerParagraph.Inlines.Add(footerSpan);
headerFooters.EvenFooter.Blocks.Add(footerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines the even page footer.
headerFooters.EvenFooter = New HeaderFooter()
Dim footerParagraph As New ParagraphAdv()
Dim footerSpan As New SpanAdv()
footerSpan.Text = "29 March 2016"
footerParagraph.Inlines.Add(footerSpan)
headerFooters.EvenFooter.Blocks.Add(footerParagraph)
EvenHeader
Gets or sets the even page header.
Declaration
public HeaderFooter EvenHeader { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The header for the even pages. |
Examples
The following code example demonstrates how to add even page header.
<!-- Defines the even page header. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.EvenHeader>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>29 March 2016</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.EvenHeader>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the even page header.
headerFooters.EvenHeader = new HeaderFooter();
ParagraphAdv headerParagraph = new ParagraphAdv();
SpanAdv headerSpan = new SpanAdv();
headerSpan.Text = "29 March 2016";
headerParagraph.Inlines.Add(headerSpan);
headerFooters.EvenHeader.Blocks.Add(headerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines the even page header.
headerFooters.EvenHeader = New HeaderFooter()
Dim headerParagraph As New ParagraphAdv()
Dim headerSpan As New SpanAdv()
headerSpan.Text = "29 March 2016"
headerParagraph.Inlines.Add(headerSpan)
headerFooters.EvenHeader.Blocks.Add(headerParagraph)
FirstPageFooter
Gets or sets the first page footer.
Declaration
public HeaderFooter FirstPageFooter { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The footer for the first page. |
Examples
The following code example demonstrates how to add first page footer.
<!-- Defines the first page footer. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.FirstPageFooter>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>First Page</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.FirstPageFooter>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the first page footer.
headerFooters.FirstPageFooter = new HeaderFooter();
ParagraphAdv footerParagraph = new ParagraphAdv();
SpanAdv footerSpan = new SpanAdv();
footerSpan.Text = "First Page";
footerParagraph.Inlines.Add(footerSpan);
headerFooters.FirstPageFooter.Blocks.Add(footerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines the first page footer.
headerFooters.FirstPageFooter = New HeaderFooter()
Dim footerParagraph As New ParagraphAdv()
Dim footerSpan As New SpanAdv()
footerSpan.Text = "First Page"
footerParagraph.Inlines.Add(footerSpan)
headerFooters.FirstPageFooter.Blocks.Add(footerParagraph)
FirstPageHeader
Gets or sets the first page header.
Declaration
public HeaderFooter FirstPageHeader { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The header for the first page. |
Examples
The following code example demonstrates how to add first page header.
<!-- Defines the first page header. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.FirstPageHeader>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>Page 1</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.FirstPageHeader>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the first page header.
headerFooters.FirstPageHeader = new HeaderFooter();
ParagraphAdv headerParagraph = new ParagraphAdv();
SpanAdv headerSpan = new SpanAdv();
headerSpan.Text = "Page 1";
headerParagraph.Inlines.Add(headerSpan);
headerFooters.FirstPageHeader.Blocks.Add(headerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines first page header.
headerFooters.FirstPageHeader = New HeaderFooter()
Dim headerParagraph As New ParagraphAdv()
Dim headerSpan As New SpanAdv()
headerSpan.Text = "Page 1"
headerParagraph.Inlines.Add(headerSpan)
headerFooters.FirstPageHeader.Blocks.Add(headerParagraph)
Footer
Gets or sets the odd page or default footer.
Declaration
public HeaderFooter Footer { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The odd page or default footer. |
Examples
The following code example demonstrates how to add default footer.
<!-- Defines the odd page or default footer. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.Footer>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>29 March 2016</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.Footer>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the odd page or default footer.
headerFooters.Footer = new HeaderFooter();
ParagraphAdv footerParagraph = new ParagraphAdv();
SpanAdv footerSpan = new SpanAdv();
footerSpan.Text = "29 March 2016";
footerParagraph.Inlines.Add(footerSpan);
headerFooters.Footer.Blocks.Add(footerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines the odd page or default footer.
headerFooters.Footer = New HeaderFooter()
Dim footerParagraph As New ParagraphAdv()
Dim footerSpan As New SpanAdv()
footerSpan.Text = "29 March 2016"
footerParagraph.Inlines.Add(footerSpan)
headerFooters.Footer.Blocks.Add(footerParagraph)
Header
Gets or sets the odd page or default header.
Declaration
public HeaderFooter Header { get; set; }
Property Value
Type | Description |
---|---|
HeaderFooter | The odd page or default header. |
Examples
The following code example demonstrates how to add default header.
<!-- Defines the odd page or default header. -->
<RichTextBoxAdv:HeaderFooters>
<RichTextBoxAdv:HeaderFooters.Header>
<RichTextBoxAdv:HeaderFooter>
<RichTextBoxAdv:ParagraphAdv>
<RichTextBoxAdv:SpanAdv>29 March 2016</RichTextBoxAdv:SpanAdv>
</RichTextBoxAdv:ParagraphAdv>
</RichTextBoxAdv:HeaderFooter>
</RichTextBoxAdv:HeaderFooters.Header>
</RichTextBoxAdv:HeaderFooters>
HeaderFooters headerFooters = new HeaderFooters();
// Defines the odd page or default header.
headerFooters.Header = new HeaderFooter();
ParagraphAdv headerParagraph = new ParagraphAdv();
SpanAdv headerSpan = new SpanAdv();
headerSpan.Text = "29 March 2016";
headerParagraph.Inlines.Add(headerSpan);
headerFooters.Header.Blocks.Add(headerParagraph);
Dim headerFooters As New HeaderFooters()
' Defines the odd page or default header.
headerFooters.Header = New HeaderFooter()
Dim headerParagraph As New ParagraphAdv()
Dim headerSpan As New SpanAdv()
headerSpan.Text = "29 March 2016"
headerParagraph.Inlines.Add(headerSpan)
headerFooters.Header.Blocks.Add(headerParagraph)