public static void SetModel(ChartControl chart, Marker3DModel model) { foreach (MarkerSeries3D series in chart.Diagram.Series) { series.Model = model; } }
public static Marker3DKind FindActualMarker3DModelKind(Marker3DModel model) { if (model == null) { return(null); } IEnumerable <Marker3DKind> marker3DKinds = Marker3DModel.GetPredefinedKinds(); foreach (Marker3DKind marker3DKind in marker3DKinds) { if (Object.Equals(marker3DKind.Type, model.GetType())) { return(marker3DKind); } } return(null); }