Back to Devexpress

Line Class

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

latest3.7 KB
Original Source

Line Class

Represents a line.

Namespace : DevExpress.Diagram.Core.Shapes

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

NuGet Package : DevExpress.Diagram.Core

Declaration

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

Remarks

To learn more, see:

The following code snippets (auto-collected from DevExpress Examples) contain references to the Line 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.

wpf-diagram-create-custom-diagram-containers/CS/DXDiagram.CreateCustomContainers/CustomContainers.xaml#L11

xml
<Start X="0" Y="0" />
<Line X="1" Y="0" />
<Line X="1" Y="1" />

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

xml
<Start X="0" Y="0"/>
<Line X="1" Y="0" />
<Line X="0.8" Y="0.8" />

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

xml
<Start X="0" Y="0"/>
<Line X="1" Y="0" />
<Line X="0.8" Y="0.8" />

wpf-diagram-register-factoryitemtools-for-shapes/CS/WpfApp13/CustomShapes.xaml#L7

xml
<Start X="0" Y="0"/>
<Line X="1" Y="0" />
<Line X="0.8" Y="0.8" />

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

xml
<Start X="0.5" Y="0" />
<Line X="0.5" Y="0.5"/>
<Line X="(COS(P0) + 1)/2" Y="(SIN(P0) + 1)/2" />

Inheritance

Object DevExpress.Diagram.Core.Shapes.Segment Line

See Also

Line Members

DevExpress.Diagram.Core.Shapes Namespace