Gets or sets the section to which the field belongs.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[BrowsableAttribute(false)]
public SectionTypeEnum Section { get; set; }
Visual Basic
<BrowsableAttribute(False)> _
Public Property Section As SectionTypeEnum
	Get
	Set

Remarks

To move a field from one section to another, set its Section property to a new value.

Examples

The following code moves all fields on the Page Header section to the Page Footer section:

Copy CodeVisual Basic
Dim i As Integer
For i = 0 To c1r.Fields.Count - 1
    If c1r.Fields(i).Section = SectionTypeEnum.PageHeader Then
        c1r.Fields(i).Section = SectionTypeEnum.PageFooter
    End If
Next
Copy CodeC#
for (int i = 0; i <= c1r.Fields.Count - 1; i++)
{
    if (c1r.Fields[i].Section = SectionTypeEnum.PageHeader)
    {
        c1r.Fields[i].Section = SectionTypeEnum.PageFooter;
    }
}

See Also