public static unsafe void AddLineMarkerXAt(IntPtr pointer, double x, double y, double miny, double maxy, double yoffset, byte r, byte g, byte b)
        {
            GCHandle handle = GCHandle.FromIntPtr(pointer);

            if (handle.IsAllocated)
            {
                PlotModel model = handle.Target as PlotModel;
                if (model != null)
                {
                    model.AddLineMarkerXAt(x, y, miny, maxy, yoffset, OxyColor.FromRgb(r, g, b));
                }
            }
        }