Hi Sandeep,
This is a designer-level setting in Visual Studio and will be configured by the developer. I found a discussion on StackOverflow which describes this, and in which you participated:
http://stackoverflow.com/questions/33756441/disable-snaplines-in-windows-froms-designer
I will summarize some of the main points here:
- In order to temporarily overwrite the setting, you can hold down the Alt key while moving the control.
- If you would like to turn it off permanently, you can go to Tools > Options > Windows Forms Designer > General. From there, set the Layout Mode option to SnapToGrid. You may also want to set the Snap to Grid option to False. You will need to restart the designer for these changes to take effect.
In the StackOverflow discussion, you asked about how this setting could be modified in code, and you elaborated that you are working on developing custom controls. You can override this setting by using the ControlDesigner class:
https://msdn.microsoft.com/en-us/library/system.windows.forms.design.controldesigner(v=vs.110).aspx
Please let me know whether I can assist you with any further questions related to Infragistics controls.