I'm converting a user pick-point in a Profile View into station/offset, but how do I determine if the user picks inside or outside of the profile view?
Right now, I get a result either way. If the user picks outside the bounds of the Profile View, I still get a station and elevation, determined as if the Profile View grid were extended an infinite amount in all directions.
I tried declaring a variable of type "object pInBounds", and passing it in the command, as follows:
double sta, elev;
object pInBounds;
view.FindStationAndElevationAtXY(pickpoint.X, pickpoint.Y, out sta, out elev, out pInBounds);
But all I get with this is pInBounds==null, regardless of whether the user picks in bounds or out of bounds.
The docs say that pInBounds should be VARIANT_TRUE or VARIANT_FALSE. What does this mean in C# terms?
Sinc