ActiveReports 16 .NET Edition
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports.SectionReportModel Namespace / Section Class / CanShrink Property
Example

In This Topic
    CanShrink Property (Section)
    In This Topic

    Indicates whether the section height should be adjusted to the exact total height of its controls.

    Syntax
    'Declaration
     
    Public Property CanShrink As Boolean
    public bool CanShrink {get; set;}

    Property Value

    Boolean. True if the section should shrink to fit its controls; False, otherwise.  Default is False.
    Example
    private void detail_Format(object sender, System.EventArgs eArgs)
    {
        this.detail.CanGrow = true;
        this.detail.CanShrink = false;
    }
    Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
        Me.Detail1.CanGrow = True
        Me.Detail1.CanShrink = False
    End Sub
    See Also