how to stop Content in Scroll View at a certain position in script ...

I’d like to stop sliding up/down the content in a Sliding View at a certain position of y.
For example, the content shouldn’t be slid up when it reaches the bottom.
I set the movementType to Unrestricted.

I guess this is very simple question. Can anyone help me ?

Well I suppose this kind of depends on what you’re actually trying to do here. For most purposes of what I can think of that you may be trying to do, just make a child of content, and kind of have it translated down like this:

As you can see in the first image is your current set up. If you add a child panel to content that’s translated down relative to content, it will only display part of it when you scroll all the way down. This gives the effect you asked for above, without needing to code anything.