Search
NodeLabel Members
Constructors Fields Properties Methods
 


Represents a supplementary label displayed by a DiagramNode. New labels can be added to a node by calling its AddLabel method.

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

 Public Constructors

  Name Description

NodeLabel

Overloaded.  

 Public Fields

  Name Description

BrushProperty

Identifies the Brush dependency property. (Inherited from ItemLabel.)

EnableWrapProperty

Identifies the EnableWrap dependency property. (Inherited from ItemLabel.)

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. (Inherited from ItemLabel.)

IndexProperty

Identifies the Index dependency property. (Inherited from ItemLabel.)

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. (Inherited from ItemLabel.)

 Public Properties

  Name Description

Brush

Gets or sets the brush used to draw the label's background. (Inherited from ItemLabel.)

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. (Inherited from ItemLabel.)

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. (Inherited from ItemLabel.)

Index

Gets or sets the index of an edge or point this label is relative to. (Inherited from ItemLabel.)

Item

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

Node

Gets or sets the DiagramNode that displays this 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 from its pin point. (Inherited from ItemLabel.)

 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 label on the specified DrawingContext surface. (Inherited from ItemLabel.)

GetDiagramItem

InplaceEditable.GetDiagramItem implementation. (Inherited from ItemLabel.)

GetEditRect

InplaceEditable.GetEditRect implementation. (Inherited from ItemLabel.)

GetTextToEdit

InplaceEditable.GetTextToEdit implementation. (Inherited from ItemLabel.)

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.

SetCenterPosition

Positions this label relatively to the node center.

SetCornerPosition

Positions this label relatively to the specified corner point.

SetEdgePosition

Positions this label relatively to the specified node edge.

SetEditedText

InplaceEditable.SetEditedText implementation. (Inherited from ItemLabel.)

SetMouseCursor

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

UpdateValue

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

 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