DiagramLite Programmer's Guide
LinkLabel Members
Constructors Fields Properties Methods
 


Represents a label displayed by a DiagramLink. New labels can be added to a link by calling the DiagramLink.AddLabel method.

The following tables list the members exposed by the LinkLabel type.

 Public Constructors

  Name Description

LinkLabel

Overloaded.  

 Public Fields

  Name Description

EnableWrapProperty

Identifies the EnableWrap dependency property.

HorizontalOffsetProperty

Identifies the HorizontalOffset dependency property.

IndexProperty

Identifies the Index dependency property.

RelativeToProperty

Identifies the RelativeTo dependency property.

TextProperty

Identifies the Text dependency property

VerticalOffsetProperty

Identifies the VerticalOffset dependency property.

 Public Properties

  Name Description

AutoArrange

Gets or sets a value indicating whether the label can be auto arranged.

Brush

Gets or sets the brush used to draw the label's background.

EnableWrap

Gets or sets a value indicating whether the label's text can be wrapped. This is a dependency property.

HorizontalOffset

Gets or sets the label's horizontal offset. This is a dependency property.

Index

Gets or sets the index of the segment or control point this label is relative to. This is a dependency property.

Link

Gets or sets the DiagramLink that displays this label.

RelativeTo

Gets or sets the label's relative positioning. This is a dependency property.

Text

Gets or sets the label's text. This is a dependency property.

VerticalOffset

Gets or sets the label's vertical offset. This is a dependency property.

 Public Methods

  Name Description

Clone

Creates a clone of this label.

GetDiagramItem

InplaceEditable.GetDiagramItem implementation.

GetEditRect

InplaceEditable.GetEditRect implementation.

GetTextToEdit

InplaceEditable.GetTextToEdit implementation.

LoadFromXml

Loads the label from the specified XML element.

SaveToXml

Saves the label into the specified XML element.

SetControlPointPosition

Positions this label relatively to the specified control point.

SetEditedText

InplaceEditable.SetEditedText implementation.

SetLinkLengthPosition

Positions this label relatively to the link length.

SetSegmentPosition

Positions this label relatively to the specified link segment.

 Protected Methods

  Name Description

PointAlongLength

Returns a point lying on a polyline that is positioned at a relative position along the polyline's length.

 See Also

LinkLabel Class
MindFusion.Diagramming Namespace