I want this because it is makes me hard to select any user drawing tool, still when in properties is unchecked in "Allow the selection or drag/drop of chart series".
Thank you in advance.
I attach the code with the FillGeometry if it should be useful:
{
SharpDX.Direct2D1.PathGeometry pathI;
SharpDX.Direct2D1.GeometrySink sinkI;
pathI = new SharpDX.Direct2D1.PathGeometry(Core.Globals.D2DFac tory);
using (pathI)
{
count = -1;
for (int idx = lastPlotIndex; idx >= firstPlotIndex; idx --)
{
x = ChartControl.GetXByBarIndex(ChartBars, idx);
if(Values[3].IsValidDataPointAt(idx-displacement))
{
y = chartScale.GetYByValue(UpperBand1.GetValueAt(idx - displacement));
returnBar = idx;
}
else
{
returnBar = idx + 1;
break;
}
count = count + 1;
cloudArray[count] = new Vector2(x,y);
}
if (count > 0)
{
for (int idx = returnBar ; idx <= lastPlotIndex; idx ++)
{
x = ChartControl.GetXByBarIndex(ChartBars, idx);
y = chartScale.GetYByValue(LowerBand1.GetValueAt(idx - displacement));
count = count + 1;
cloudArray[count] = new Vector2(x,y);
}
}
sinkI = pathI.Open();
sinkI.BeginFigure(cloudArray[0], FigureBegin.Filled);
for (int i = 1; i <= count; i++)
sinkI.AddLine(cloudArray[i]);
sinkI.EndFigure(FigureEnd.Closed);
sinkI.Close();
RenderTarget.FillGeometry(pathI, innerAreaBrushDX);
}
pathI.Dispose();
sinkI.Dispose();
}
When any drawing is out of FillGeometry, it can be easily selectable.
This links will expire in 2 days
This is when in properties is checked "Allow the selection or drag/drop of chart series".

Comment