Click or drag to resize

DXFReaderNETControlObjectOsnapMode Property

Gets or sets the object snap (OSNAP) modes for precision point selection.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public ObjectOsnapTypeFlags ObjectOsnapMode { get; set; }

Property Value

Type: ObjectOsnapTypeFlags
A bitwise combination of ObjectOsnapTypeFlags values that determine which geometric snap points are active during entity selection and drawing operations.
Remarks
Object snap modes enable precise point selection by automatically snapping to specific geometric features such as:
  • Endpoints of lines, arcs, and polylines
  • Midpoints of line segments
  • Center points of circles and arcs
  • Intersection points between entities
  • Perpendicular and tangent points
Multiple snap modes can be combined using bitwise OR operations. Set to None to disable all object snap functionality.
Examples
// Enable endpoint and midpoint snapping
dxfControl.ObjectOsnapMode = ObjectOsnapTypeFlags.EndPoint | ObjectOsnapTypeFlags.MidPoint;

// Disable all snapping
dxfControl.ObjectOsnapMode = ObjectOsnapTypeFlags.None;
See Also