Core2D.Shapes.XCubicBezier.Create C# (CSharp) Method

Create() public static method

Creates a new XCubicBezier instance.
public static Create ( XPoint point1, XPoint point2, XPoint point3, XPoint point4, ShapeStyle style, BaseShape point, bool isStroked = true, bool isFilled = false, string name = "" ) : XCubicBezier
point1 XPoint The point.
point2 XPoint The point.
point3 XPoint The point.
point4 XPoint The point.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
isStroked bool The flag indicating whether shape is stroked.
isFilled bool The flag indicating whether shape is filled.
name string The shape name.
return XCubicBezier
        public static XCubicBezier Create(XPoint point1, XPoint point2, XPoint point3, XPoint point4, ShapeStyle style, BaseShape point, bool isStroked = true, bool isFilled = false, string name = "")
        {
            return new XCubicBezier()
            {
                Name = name,
                Style = style,
                IsStroked = isStroked,
                IsFilled = isFilled,
                Point1 = point1,
                Point2 = point2,
                Point3 = point3,
                Point4 = point4
            };
        }
    }

Same methods

XCubicBezier::Create ( double x, double y, ShapeStyle style, BaseShape point, bool isStroked = true, bool isFilled = false, string name = "" ) : XCubicBezier
XCubicBezier::Create ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, ShapeStyle style, BaseShape point, bool isStroked = true, bool isFilled = false, string name = "" ) : XCubicBezier