/// <summary> /// Returns a value that indicates whether the drawing curve is a bend line. /// </summary> /// <param name="drawingCurve"> /// The <see cref="DrawingCurve"/> instance that this extension method affects.</param> /// <returns><c>true</c> if the drawing curve is a bend line, <c>false</c> otherwise.</returns> /// <exception cref="ArgumentNullException"><paramref name="drawingCurve"/> is <c>null</c>.</exception> public static bool IsBendLine(this DrawingCurve drawingCurve) { if (drawingCurve == null) { throw new ArgumentNullException(nameof(drawingCurve)); } return(drawingCurve.IsLine() && ( drawingCurve.EdgeType == DrawingEdgeTypeEnum.kBendDownEdge || drawingCurve.EdgeType == DrawingEdgeTypeEnum.kBendUpEdge )); }