←Select platform

ResizeLargeObject Property

Summary

Automatically resizes dropped objects when their size is larger than the container.

Syntax
C#
C++/CLI
Python
public bool ResizeLargeObject { get; set; } 
public:  
   property bool ResizeLargeObject 
   { 
      bool get() 
      void set(bool value) 
   } 
ResizeLargeObject # get and set (AnnDragDropEventArgs) 

Property Value

true to automatically resize dropped objects when the size is larger than the container, otherwise; false. The default value is true.

Remarks

The ResizeLargeObject and AnnAutomationManager.RestrictDesigners control the behavior when the size of the dropped object is larger than the target container.

The following behavior occurs when the value of AnnAutomationManager.RestrictDesigners is true:

  1. If the value of ResizeLargeObject is true (the default value), then the framework will complete adding the object to the target container and its size will be scaled to fit the container size.
  2. If the value of ResizeLargeObject is false, then the object size will be ignored and the object will not be added to the target container.
  3. If the object size is less than container size then ResizeLargeObject is ignored and the object is added as is.

If the value of AnnAutomationManager.RestrictDesigners is false, then ResizeLargeObject is not used and the same behavior as (3) above will always occur regardless of the size of the object or the container.

Requirements

Target Platforms

Help Version 22.0.2023.4.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.