←Select platform

MaintainAspectRatio Property

Summary

Gets or sets a value that indicates whether to preserve the aspect ratio when moving a corner thumb.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public virtual bool MaintainAspectRatio { get; set; } 
Public Overridable Property MaintainAspectRatio As Boolean 
public virtual bool MaintainAspectRatio {get; set;} 
@property (nonatomic, assign) BOOL maintainAspectRatio 
public boolean getMaintainAspectRatio() 
public void setMaintainAspectRatio(boolean maintainAspectRatio) 
             
 <br/>get_MaintainAspectRatio();<br/>set_MaintainAspectRatio(value);<br/>Object.defineProperty('MaintainAspectRatio');  
public:  
   virtual property bool MaintainAspectRatio 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to preserve the aspect ratio when moving a corner thumb; otherwise, it is false. The default value is true.

Remarks

When selecting an AnnRectangleObject, or any annotation object that derives from an AnnRectangleObject, eight thumbs appear. If MaintainAspectRatio is true (default), dragging one of the four corner thumbs changes the size of the annotation object while maintaining its aspect ratio. If false, the aspect ratio won't be preserved.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Designers Assembly