ActiveReports3 Request technical support
CanShrink Property
See Also  Example


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

Syntax

Visual Basic (Declaration) 
Public Property CanShrink As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Section
Dim value As Boolean
 
instance.CanShrink = value
 
value = instance.CanShrink
C# 
public bool CanShrink {get; set;}

Return Value

Boolean. True if the section should shrink to fit its controls; False, otherwise.  Default is False.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
   
this.detail.CanGrow = true;
   
this.detail.CanShrink = false;
}
Visual BasicCopy Code
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