ActiveReports 15 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Label Class / VerticalAlignment Property
Example

In This Topic
    VerticalAlignment Property (Label)
    In This Topic
    Gets or sets the position of the label's text vertically within the bounds of the control.
    Syntax
    'Declaration
     
    Public Property VerticalAlignment As GrapeCity.ActiveReports.Document.Section.VerticalTextAlignment
    public GrapeCity.ActiveReports.Document.Section.VerticalTextAlignment VerticalAlignment {get; set;}

    Property Value

    Current vertical alignment of the label's text.  Default is VerticalTextAlignment.Top. Possible values are:

    • VerticalTextAlignment.Bottom
    • VerticalTextAlignment.Middle
    • VerticalTextAlignment.Top
    Example
    private void detail_Format(object sender, System.EventArgs eArgs)
    {
        this.label1.VerticalAlignment = VerticalTextAlignment.Top;
    }
    Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
       Me.Label1.VerticalAlignment = VerticalTextAlignment.Top
    End Sub
    See Also