New to Telerik UI for WPFStart a free 30-day trial

Represents a diagram logical segment.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

T

The type.

Syntax:

C#
public class DiagramSegment<T>

Inheritance: objectDiagramSegment<T>

Derived Classes: DiagramShapeSegment

Constructors

Initializes a new instance of the DiagramSegment<T> class.

C#
public DiagramSegment(DiagramSegmentPosition position)
Parameters:positionDiagramSegmentPosition

The position.

Properties

Gets the count.

C#
public int Count { get; }

Gets the items.

C#
public IEnumerable<T> Items { get; }

Gets the position.

C#
public DiagramSegmentPosition Position { get; }

Methods

Adds the item.

C#
public bool AddItem(T item)
Parameters:itemT

The item.

Returns:

bool

Removes the item.

C#
public bool RemoveItem(T item)
Parameters:itemT

The item.

Returns:

bool