ComponentOne Reports for WPF
C1.C1Report Namespace / Section Class / CanShrink Property

In This Topic
    CanShrink Property (Section)
    In This Topic
    Specifies whether the Section height should be reduced when one or more fields shrink.
    Syntax
    'Declaration
     
    Public Property CanShrink As Boolean
    public bool CanShrink {get; set;}
    Remarks

    You can use the Section.CanGrow and Section.CanShrink properties to control the layout of report sections and fields.

    For example, if you set both properties to true, a section or field automatically adjusts vertically to print or preview all the data it contains.

    When a section grows or shrinks, its Section.Height property does not change. To retrieve the actual (adjusted) height, use the Section.RenderHeight property.

    You can make fields grow or shrink to match the size of the section by setting their Field.Anchor property.

    See Also