internal object GetContextObjectNoLabel() { ContextElementTypes elementType = ElementType; if (elementType == ContextElementTypes.AxisLabel) { return(AxisLabelAxis); } return(GetContextObject()); }
public object GetContextObjectNoLabel() { ContextElementTypes elementType = this.ElementType; if (elementType == ContextElementTypes.AxisLabel) { return(this.AxisLabelAxis); } return(this.GetContextObject()); }
internal bool IsAplicable(ContextElementTypes types) { bool flag = false; if (types == ContextElementTypes.None) { return(false); } if ((types & ContextElementTypes.Any) == ContextElementTypes.Any) { return(true); } if ((types & ContextElementTypes.ChartArea) == ContextElementTypes.ChartArea) { flag = (flag || ChartArea != null); } if ((types & ContextElementTypes.Axis) == ContextElementTypes.Axis) { flag = (flag || Axis != null); } if ((types & ContextElementTypes.AxisLabel) == ContextElementTypes.AxisLabel) { flag = (flag || AxisLabel != null); } if ((types & ContextElementTypes.Legend) == ContextElementTypes.Legend) { flag = (flag || Legend != null); } if ((types & ContextElementTypes.Series) == ContextElementTypes.Series) { flag = (flag || Series != null); } if ((types & ContextElementTypes.Annotation) == ContextElementTypes.Annotation) { flag = (flag || Annotation != null); } if ((types & ContextElementTypes.Title) == ContextElementTypes.Title) { flag = (flag || Title != null); } return(flag); }
private IList GetHitOrderList() { ArrayList arrayList = new ArrayList(); ContextElementTypes contextElementTypes = selectableTypes; if ((contextElementTypes & ContextElementTypes.Annotation) == ContextElementTypes.Annotation) { arrayList.Add(ChartElementType.Annotation); } if ((contextElementTypes & ContextElementTypes.Title) == ContextElementTypes.Title) { arrayList.Add(ChartElementType.Title); } if ((contextElementTypes & ContextElementTypes.Legend) == ContextElementTypes.Legend) { arrayList.Add(ChartElementType.LegendArea); arrayList.Add(ChartElementType.LegendItem); arrayList.Add(ChartElementType.LegendTitle); } if ((contextElementTypes & ContextElementTypes.Series) == ContextElementTypes.Series) { arrayList.Add(ChartElementType.DataPoint); arrayList.Add(ChartElementType.DataPointLabel); } if ((contextElementTypes & ContextElementTypes.Axis) == ContextElementTypes.Axis || (contextElementTypes & ContextElementTypes.AxisLabel) == ContextElementTypes.AxisLabel) { arrayList.Add(ChartElementType.Axis); arrayList.Add(ChartElementType.AxisLabelImage); arrayList.Add(ChartElementType.AxisTitle); arrayList.Add(ChartElementType.AxisLabels); arrayList.Add(ChartElementType.TickMarks); } if ((contextElementTypes & ContextElementTypes.ChartArea) == ContextElementTypes.ChartArea) { arrayList.Add(ChartElementType.PlottingArea); arrayList.Add(ChartElementType.StripLines); arrayList.Add(ChartElementType.Gridlines); } return(arrayList); }