Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
Leadtools.Windows.Annotations Namespace > AnnEditDesigner Class : MaintainAspectRatio Property |
public bool MaintainAspectRatio {get; set;}
'Declaration Public 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.Windows.Controls Imports Leadtools.Windows.Annotations Public Sub AnnEditDesigner_MaintainAspectRatio(ByVal editDesigner As AnnRectangleEditDesigner) editDesigner.MaintainAspectRatio = Not editDesigner.MaintainAspectRatio End Sub
using Leadtools.Windows.Controls; using Leadtools.Windows.Annotations; using Leadtools.Demos; using Leadtools.Help; public void AnnEditDesigner_MaintainAspectRatio(AnnRectangleEditDesigner editDesigner) { editDesigner.MaintainAspectRatio = !editDesigner.MaintainAspectRatio; }
using Leadtools.Windows.Controls; using Leadtools.Windows.Annotations; using Leadtools.Examples; public void AnnEditDesigner_MaintainAspectRatio(AnnRectangleEditDesigner editDesigner) { editDesigner.MaintainAspectRatio = !editDesigner.MaintainAspectRatio; }
Imports Leadtools.Windows.Controls Imports Leadtools.Windows.Annotations Public Sub AnnEditDesigner_MaintainAspectRatio(ByVal editDesigner As AnnRectangleEditDesigner) editDesigner.MaintainAspectRatio = Not editDesigner.MaintainAspectRatio End Sub