Core2D.Path.XPathFigure.Create C# (CSharp) Method

Create() public static method

Creates a new XPathFigure instance.
public static Create ( XPoint startPoint, bool isFilled = true, bool isClosed = true ) : XPathFigure
startPoint Core2D.Shapes.XPoint The start point.
isFilled bool The flag indicating whether path is filled.
isClosed bool The flag indicating whether path is closed.
return XPathFigure
        public static XPathFigure Create(XPoint startPoint, bool isFilled = true, bool isClosed = true)
        {
            return new XPathFigure()
            {
                StartPoint = startPoint,
                IsFilled = isFilled,
                IsClosed = isClosed
            };
        }

Usage Example

コード例 #1
0
 /// <inheritdoc/>
 public override void BeginFigure(XPoint startPoint, bool isFilled = true, bool isClosed = true)
 {
     _currentFigure    = XPathFigure.Create(startPoint, isFilled, isClosed);
     _geometry.Figures = _geometry.Figures.Add(_currentFigure);
 }