ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Image Class / Sizing Property
Example

In This Topic
    Sizing Property (Image)
    In This Topic
    Gets or sets a value indicating how the image is rendered if it does not fit within the defined size.
    Syntax
    'Declaration
     
    Public Property Sizing As ImageSizing
    public ImageSizing Sizing {get; set;}

    Property Value

    An ImageSizing value indicating how the image is rendered if it does not fit within the defined size.
    Remarks

    If Sizing is set to ImageSizing.AutoSize, the control's borders grow or shrink to match the size of the image.

    If Sizing is set to ImageSizing.Fit, the image is resized to match the height and width of the control.

    If Sizing is set to ImageSizing.FitProportional, the image is resized while preserving the aspect ratio to match either the height or width of the control or both.

    If Sizing is set to ImageSizing.Clip, the image is clipped to fit inside the borders of the control.

    Report output formats which do not support ImageSizing.FitProportional or ImageSizing.Clip should use ImageSizing.Fit instead.

    Example
    Image image = new Image();
    image.Sizing = ImageSizing.Fit;
    See Also