Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.Reporting.v4.3 Assembly / Xceed.Grid.Reporting Namespace / HeaderFooter Class / CenterElement Property


In This Topic
    CenterElement Property
    In This Topic
    Gets the center element of the header or footer section.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The center element of the header or footer section.")>
    <CategoryAttribute("Appearance")>
    <EndUserBrowsableAttribute(False)>
    <TypeConverterAttribute("Xceed.Grid.Design.BlankExpandableObjectConverter,Xceed.Grid.v4.3.Design,Version=4.3.25208.5768,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
    <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
    <XmlIgnoreAttribute()>
    Public ReadOnly Property CenterElement As HeaderFooterElement
    'Usage
     
    Dim instance As HeaderFooter
    Dim value As HeaderFooterElement
     
    value = instance.CenterElement
    [Description("The center element of the header or footer section.")]
    [Category("Appearance")]
    [EndUserBrowsable(false)]
    [TypeConverter("Xceed.Grid.Design.BlankExpandableObjectConverter,Xceed.Grid.v4.3.Design,Version=4.3.25208.5768,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
    [XmlIgnore()]
    public HeaderFooterElement CenterElement {get;}

    Property Value

    A HeaderFooterElement representing the center element of the header or footer section.
    Remarks

    The center element's content will always be centered.

    The IsCenterElementDefined property should be consulted before the CenterElement property is accessed to prevent a new instance of a HeaderFooterElement from being created in the case where none of the properties of the CenterElement have been explicitly set.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also