VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI.VisualTools Namespace / WpfOverlayImageTool Class / MaintainAspectRatio Property
Syntax Requirements SeeAlso
In This Topic
    MaintainAspectRatio Property (WpfOverlayImageTool)
    In This Topic
    Gets or sets a value indicating whether visual tool must maintain the aspect ratio of image.
    Syntax
    'Declaration
    
    <DefaultValueAttribute(False)>
    <CategoryAttribute("Behavior")>
    <DescriptionAttribute("A value indicating whether visual tool must maintain the aspect ratio of image.")>
    Public Property MaintainAspectRatio As Boolean
    
    
    [DefaultValue(False)]
    [Category("Behavior")]
    [Description("A value indicating whether visual tool must maintain the aspect ratio of image.")]
    public bool MaintainAspectRatio { get; set; }
    
    
    [DefaultValue(False)]
    [Category("Behavior")]
    [Description("A value indicating whether visual tool must maintain the aspect ratio of image.")]
    public: __property bool get_MaintainAspectRatio();
    public: __property void set_MaintainAspectRatio(
    bool value
    );
    [DefaultValue(False)]
    [Category("Behavior")]
    [Description("A value indicating whether visual tool must maintain the aspect ratio of image.")]
    public:
    property bool MaintainAspectRatio { bool get(); void set(bool value); }

    Property Value

    Default value is false.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also