PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / ImageAlign Structure / BestFit Property

In This Topic
    BestFit Property (ImageAlign)
    In This Topic
    Gets or sets a value indicating whether an image should be resized to best fit within its container. See remarks for details.
    Syntax
    'Declaration
     
    Public Property BestFit As Boolean
    public bool BestFit {get; set;}
    Remarks

    Getting this property returns a Boolean conjunction (AND) of the ImageAlign.StretchHorz, ImageAlign.StretchVert and ImageAlign.KeepAspectRatio values.

    Setting this property to a true value sets ImageAlign.StretchHorz, ImageAlign.StretchVert and ImageAlign.KeepAspectRatio to true.

    Setting this property to a false value sets ImageAlign.KeepAspectRatio only to false.

    See Also