MindFusion.Wpf Pack 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. Initializes a new instance of the LinkLabel class.

 Public Fields

  Name Description

BrushProperty

Identifies the Brush dependency property.

EnableWrapProperty

Identifies the EnableWrap dependency property.

FontFamilyProperty

Identifies the FontFamily dependency property. (Inherited from TextPresenter.)

FontSizeProperty

Identifies the FontSize dependency property. (Inherited from TextPresenter.)

FontStretchProperty

Identifies the FontStretch dependency property. (Inherited from TextPresenter.)

FontStyleProperty

Identifies the FontStyle dependency property. (Inherited from TextPresenter.)

FontWeightProperty

Identifies the FontWeight dependency property. (Inherited from TextPresenter.)

HorizontalOffsetProperty

Identifies the HorizontalOffset dependency property.

IndexProperty

Identifies the Index dependency property.

MarginProperty

Identifies the Margin dependency property.

MaxWidthProperty

Identifies the MaxWidth dependency property.

RelativeToProperty

Identifies the RelativeTo dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property. (Inherited from TextPresenter.)

TextBrushProperty

Identifies the TextBrush dependency property. (Inherited from TextPresenter.)

TextDecorationsProperty

Identifies the TextDecorations dependency property. (Inherited from TextPresenter.)

TextPaddingProperty

Identifies the TextPadding dependency property. (Inherited from TextPresenter.)

TextProperty

Identifies the Text dependency property. (Inherited from TextPresenter.)

TextTrimmingProperty

Identifies the TextTrimming dependency property. (Inherited from TextPresenter.)

TextVerticalAlignmentProperty

Identifies the TextVerticalAlignment dependency property. (Inherited from TextPresenter.)

TextWrappingProperty

Identifies the TextWrapping dependency property. (Inherited from TextPresenter.)

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.

ConstrainedHeight

Gets whether text layout area has limited height. (Inherited from TextPresenter.)

EnableWrap

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

FontFamily

Gets or sets the preferred font family for this TextPresenter. (Inherited from TextPresenter.)

FontSize

Gets or sets the font size for this TextPresenter. (Inherited from TextPresenter.)

FontStretch

Gets or sets the font-stretching characteristics for this TextPresenter. (Inherited from TextPresenter.)

FontStyle

Gets or sets the font style for this TextPresenter. (Inherited from TextPresenter.)

FontWeight

Gets or sets the font weight for this TextPresenter. (Inherited from TextPresenter.)

HorizontalOffset

Gets or sets the label's horizontal offset.

Index

Gets or sets the index of the segment or control point this label is relative to.

Item

Gets or sets the DiagramItem that displays this label. (Inherited from ItemLabel.)

LengthFactor

Gets or sets label's position along link's length when the RelativeTo property is set to LinkLength.

Link

Gets or sets the DiagramLink that displays this label.

Margin

Gets or sets the label's margin.

MaxWidth

Gets or sets the maximum width of the label.

RelativeTo

Gets or sets the label's relative positioning.

Text

Gets or sets the text displayed inside this item. (Inherited from TextPresenter.)

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content. (Inherited from TextPresenter.)

TextBrush

Gets or sets the text displayed inside this item. (Inherited from TextPresenter.)

TextDecorations

Gets or sets the effects to apply to the text of this TextPresenter. (Inherited from TextPresenter.)

TextPadding

Gets or sets the thickness of padding space between the item boundaries and its text. (Inherited from TextPresenter.)

TextTrimming

Gets or sets the text trimming to employ when text overflows the item area. (Inherited from TextPresenter.)

TextVerticalAlignment

Gets or sets a value that indicates the vertical alignment of text content. (Inherited from TextPresenter.)

TextWrapping

Gets or sets how this TextPresenter should wrap text. (Inherited from TextPresenter.)

VerticalOffset

Gets or sets the label's vertical offset.

 Public Methods

  Name Description

Cancel

Called when drag operation is canceled. (Inherited from ItemLabel.)

Clone

Creates a clone of this label.

CopyFrom

Copies all text attributes from the specified object. (Inherited from TextPresenter.)

Draw

Draws the link label on the specified DrawingContext surface.

GetDiagramItem

InplaceEditable.GetDiagramItem implementation.

GetEditRect

InplaceEditable.GetEditRect implementation.

GetTextToEdit

InplaceEditable.GetTextToEdit implementation.

LoadFromXml

Loads the label from the specified XML element.

OnMouseDown

Called when the left mouse button is pressed while the pointer is over this label. (Inherited from ItemLabel.)

OnMouseMove

Called when the mouse is moved while this label tracks the mouse events. (Inherited from ItemLabel.)

OnMouseUp

Called when the left mouse button is released while this label tracks the mouse events. (Inherited from ItemLabel.)

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.

SetMouseCursor

Indicates what cursor to display for interactive labels. (Inherited from ItemLabel.)

SetSegmentPosition

Positions this label relatively to the specified link segment.

UpdateValue

Called while drag operation is in progress. (Inherited from ItemLabel.)

 Protected Methods

  Name Description

LoadFromJson

Loads the label from a JSON object.

LoadTextAttributes

Overloaded.   (Inherited from TextPresenter.)

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes. (Inherited from TextPresenter.)

PointAlongLength

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

SaveTextAttributes

Overloaded.   (Inherited from TextPresenter.)

SaveToJson

Saves the label as a JSON object.

SetDiagramDirty

Invoked when a value is assigned to a property and the diagram's Dirty flag must be set. (Inherited from TextPresenter.)

 See Also

LinkLabel Class
MindFusion.Diagramming.Wpf Namespace