Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.2
|
Leadtools.Annotations Namespace > AnnEditDesigner Class : MaintainAspectRatio Property |
public virtual bool MaintainAspectRatio {get; set;}
'Declaration Public Overridable Property MaintainAspectRatio As Boolean
'Usage Dim instance As AnnEditDesigner Dim value As Boolean instance.MaintainAspectRatio = value value = instance.MaintainAspectRatio
This example toggles the MaintainAspectRatio state of the AnnRectangleEditDesigner. To see the effect of this example, perform the following actions:
Imports Leadtools Imports Leadtools.Annotations Imports Leadtools.Codecs Imports Leadtools.WinForms Public Sub AnnEditDesigner_MaintainAspectRatio(ByVal editDesigner As AnnRectangleEditDesigner) editDesigner.MaintainAspectRatio = Not editDesigner.MaintainAspectRatio End Sub
using Leadtools; using Leadtools.Annotations; using Leadtools.Codecs; using Leadtools.WinForms; public void AnnEditDesigner_MaintainAspectRatio(AnnRectangleEditDesigner editDesigner) { editDesigner.MaintainAspectRatio = !editDesigner.MaintainAspectRatio; }