TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / C1ApplicationZoom Class / KeepAspectRatio Property
Example

In This Topic
    KeepAspectRatio Property (C1ApplicationZoom)
    In This Topic
    Gets or sets a value indicating whether to keep aspect ratio when resize the form.
    Syntax
    'Declaration
     
    
    Public Property KeepAspectRatio As Boolean
    public bool KeepAspectRatio {get; set;}

    Property Value

    true if keep aspect ratio when resize the form; otherwise, false. The default is false.
    Example

    The following code example shows how to enable/disable the keep aspect ration when resize the form.

    This code example is part of a larger example provided for the C1Zoom.AllowPinchZoom property.

    See Also