public virtual LeadPointD SnapPointToGrid(
LeadPointD position,
bool clipToContainer
)
Public Overridable Function SnapPointToGrid( _
ByVal position As LeadPointD, _
ByVal clipToContainer As Boolean _
) As LeadPointD
public:
virtual LeadPointD^ SnapPointToGrid(
LeadPointD^ position,
bool clipToContainer
)
position
Point to snap.
clipToContainer
A Boolean value to specify if we want to clip the point to container bounds after snap or no.
point snapped to the container grid based on SnapToGridOptions.
This method will snap the input point to the nearest point determined by the container grid.
This method depends on EnableSnap property. If it is set to true, it will snap the specified point, otherwise this method will return the same values for the input point.
This method depends on the SnapToGridOptions values to calculate each grid cell and for snaping the specified point.
Override this behavior by overriding the SnapPointToGrid method.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document