Back to Devexpress

Arc Class

corelibraries-devexpress-dot-diagram-dot-core-dot-shapes.md

latest3.4 KB
Original Source

Arc Class

Represents an arc with the size and the direction.

Namespace : DevExpress.Diagram.Core.Shapes

Assembly : DevExpress.Diagram.v25.2.Core.dll

NuGet Package : DevExpress.Diagram.Core

Declaration

csharp
public sealed class Arc :
    Segment
vb
Public NotInheritable Class Arc
    Inherits Segment

Remarks

To learn more, see:

The following code snippets (auto-collected from DevExpress Examples) contain references to the Arc class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

diagramcontrol-how-to-create-custom-shapes-with-connection-points-using-xaml-markup-t381372/CS/XtraDiagram.CreateCustomShapesXaml/DiagramResources.xaml#L25

xml
<Start X="0" Y="0" FillColor="Brown"/>
<Arc X="1" Y="0" Size="CreateSize(W/2, H/10)" Direction="Counterclockwise" />
<Arc X="1" Y="1" Size="CreateSize(W/10, H/2)" Direction="Counterclockwise" />

wpf-diagramdesigner-create-custom-shapes-with-connection-points/CS/DXDiagram.CreateCustomShapes/CustomShapes.xaml#L24

xml
<Start X="0" Y="0" FillColor="Brown"/>
<Arc X="1" Y="0" Size="CreateSize(W/2, H/10)" Direction="Counterclockwise" />
<Arc X="1" Y="1" Size="CreateSize(W/10, H/2)" Direction="Counterclockwise" />

wpf-diagram-use-custom-functions-in-shape-templates/CS/WpfApp13/CustomShapes.xaml#L10

xml
<Line X="(COS(P0) + 1)/2" Y="(SIN(P0) + 1)/2" />
<Arc X="CreateArcPoint((COS(P0) + 1)/2, (SIN(P0) + 1)/2, 'X')"
     Y="CreateArcPoint((COS(P0) + 1)/2, (SIN(P0) + 1)/2, 'Y')"

Inheritance

Object DevExpress.Diagram.Core.Shapes.Segment Arc

See Also

Arc Members

DevExpress.Diagram.Core.Shapes Namespace