Core2D.Path.Segments.XLineSegment.Create C# (CSharp) Méthode

Create() public static méthode

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.
Résultat XLineSegment
        public static XLineSegment Create(XPoint point, bool isStroked, bool isSmoothJoin)
        {
            return new XLineSegment()
            {
                Point = point,
                IsStroked = isStroked,
                IsSmoothJoin = isSmoothJoin
            };
        }