/// <summary> /// Creates a new instance of <see cref="PointCategoryTheme"/>. /// </summary> /// <param name="criterion">The criterion belonging to the category.</param> /// <param name="style">The <see cref="PointStyle"/> belonging to the category.</param> /// <exception cref="ArgumentNullException">Thrown when any parameter is <c>null</c>.</exception> public PointCategoryTheme(ValueCriterion criterion, PointStyle style) : base(criterion) { if (style == null) { throw new ArgumentNullException(nameof(style)); } Style = style; }
/// <summary> /// Creates a new instance of <see cref="CategoryTheme"/>. /// </summary> /// <param name="criterion">The criterion belonging to the category.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="criterion"/> /// is <c>null</c>.</exception> protected CategoryTheme(ValueCriterion criterion) { if (criterion == null) { throw new ArgumentNullException(nameof(criterion)); } Criterion = criterion; }