MindFusion.Wpf Pack Programmer's Guide
ItemLabel Members
Constructors Fields Properties Methods
 


The base class for node and link labels.

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

 Public Constructors

  Name Description

ItemLabel

Overloaded.  

 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.

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

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 from its pin point.

Index

Gets or sets the index of an edge or point this label is relative to.

Item

Gets or sets the DiagramItem that displays this label.

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 from its pin point.

 Public Methods

  Name Description

Cancel

Called when drag operation is canceled.

CopyFrom

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

Draw

Draws the 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.

OnMouseMove

Called when the mouse is moved while this label tracks the mouse events.

OnMouseUp

Called when the left mouse button is released while this label tracks the mouse events.

SaveToXml

Saves the label into the specified XML element.

SetEditedText

InplaceEditable.SetEditedText implementation.

SetMouseCursor

Indicates what cursor to display for interactive labels.

UpdateValue

Called while drag operation is in progress.

 Protected Methods

  Name Description

LoadFromJson

Loads the label from a JsonObject.

LoadTextAttributes

Overloaded.   (Inherited from TextPresenter.)

OnTextAttributeChanged

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

SaveTextAttributes

Overloaded.   (Inherited from TextPresenter.)

SaveToJson

Saves the label into a JsonObject.

SetDiagramDirty

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

 See Also

ItemLabel Class
MindFusion.Diagramming.Wpf Namespace