←Select platform

EnableObjectsAlignment Property

Summary

Gets or sets a value that indicates whether you can align selected objects based on one of them.

Syntax

C#
VB
Java
WinRT C#
C++
public bool EnableObjectsAlignment { get; set; } 
Public Property EnableObjectsAlignment As Boolean 
public bool EnableObjectsAlignment {get; set;} 
public boolean getEnableObjectsAlignment() 
public void setEnableObjectsAlignment(boolean enableObjectsAlignment) 
              
 <br/>get_EnableObjectsAlignment();<br/>set_EnableObjectsAlignment(value);<br/>Object.defineProperty('EnableObjectsAlignment');  
public:  
   property bool EnableObjectsAlignment 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true if you can align selected objects based on one of them; otherwise, false. The default value is false.

Remarks

When setting this property to true if there are multiple selected objects, you can align them based on a target alignment object. The target is one of the selected objects which by default is the last object added to the container. You can select the target alignment object by clicking on it when its grouped in a selection rectangle.

The alignment target object will be highlighted by a blue rectangle. You can change the way it highlights by overriding RenderAlignmentTarget method.

The alignment methods you can use are as follows:

  • AlignLefts aligns the selected objects along with alignment target left side.
  • AlignCenters aligns the selected objects along with alignment target horizontal center.
  • AlignRights aligns the selected objects along with alignment target right side.
  • AlignTops aligns the selected objects along with alignment target top side.
  • AlignMiddles aligns the selected objects along with alignment target vertical center.
  • AlignBottoms aligns the selected objects along with alignment target bottom side.
  • MakeSameWidth make the width for selected objects the same with alignment target width.
  • MakeSameHeight make the height for selected objects the same with alignment target height.
  • MakeSameSize make the size for selected objects the same with alignment target size.
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.Automation Assembly