Back to Devexpress

DiagramConnector.Content Property

windowsforms-devexpress-dot-xtradiagram-dot-diagramconnector-ebaf2b92.md

latest1.8 KB
Original Source

DiagramConnector.Content Property

Gets or sets the text displayed within the connector.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.Common)]
public virtual string Content { get; set; }
vb
<DiagramCategory(DiagramCategory.Common)>
Public Overridable Property Content As String

Property Value

TypeDescription
String

The text displayed within the connector.

|

Example

The following example shows how to specify arrow styles and text for a diagram connector.

csharp
using DevExpress.Diagram.Core;

diagramConnector1.BeginArrow = ArrowDescriptions.FilledSquare;
diagramConnector1.EndArrow = ArrowDescriptions.FilledDoubleArrow;
diagramConnector1.Content = "Start";
vb
Imports DevExpress.Diagram.Core

DiagramConnector1.BeginArrow = ArrowDescriptions.FilledSquare
DiagramConnector1.EndArrow = ArrowDescriptions.FilledDoubleArrow
DiagramConnector1.Text = "Start"

See Also

DiagramConnector Class

DiagramConnector Members

DevExpress.XtraDiagram Namespace