SplineComponent snap to floor

I have a spline component , is there any way let the point which I select snap to floor? Just like the Edit Splines in landscape. Or is there any way that i can achieve it using C++?