Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / ImageAlign Class / BestFit Property

In This Topic
    BestFit Property
    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 System.Boolean
    public System.bool BestFit {get; set;}
    Remarks

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

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

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

    See Also