Core2D.Path.Segments.XLineSegment.Create C# (CSharp) Method

Create() public static method

Creates a new XLineSegment instance.
public static Create ( XPoint point, bool isStroked, bool isSmoothJoin ) : XLineSegment
point Core2D.Shapes.XPoint The end point.
isStroked bool The flag indicating whether shape is stroked.
isSmoothJoin bool The flag indicating whether shape is smooth join.
return XLineSegment
        public static XLineSegment Create(XPoint point, bool isStroked, bool isSmoothJoin)
        {
            return new XLineSegment()
            {
                Point = point,
                IsStroked = isStroked,
                IsSmoothJoin = isSmoothJoin
            };
        }