Search
TextPresenter Members
Constructors Fields Properties Methods
 


Implements a container for text content and defines text attributes.

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

 Public Constructors

  Name Description

TextPresenter

Initializes a new instance of the TextPresenter class.

 Public Fields

  Name Description

FontFamilyProperty

Identifies the FontFamily dependency property.

FontSizeProperty

Identifies the FontSize dependency property.

FontStretchProperty

Identifies the FontStretch dependency property.

FontStyleProperty

Identifies the FontStyle dependency property.

FontWeightProperty

Identifies the FontWeight dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

TextBrushProperty

Identifies the TextBrush dependency property.

TextDecorationsProperty

Identifies the TextDecorations dependency property.

TextPaddingProperty

Identifies the TextPadding dependency property.

TextProperty

Identifies the Text dependency property.

TextTrimmingProperty

Identifies the TextTrimming dependency property.

TextVerticalAlignmentProperty

Identifies the TextVerticalAlignment dependency property.

TextWrappingProperty

Identifies the TextWrapping dependency property.

 Public Properties

  Name Description

ConstrainedHeight

Gets whether text layout area has limited height.

FontFamily

Gets or sets the preferred font family for this TextPresenter.

FontSize

Gets or sets the font size for this TextPresenter.

FontStretch

Gets or sets the font-stretching characteristics for this TextPresenter.

FontStyle

Gets or sets the font style for this TextPresenter.

FontWeight

Gets or sets the font weight for this TextPresenter.

Text

Gets or sets the text displayed inside this item.

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content.

TextBrush

Gets or sets the text displayed inside this item.

TextDecorations

Gets or sets the effects to apply to the text of this TextPresenter.

TextPadding

Gets or sets the thickness of padding space between the item boundaries and its text.

TextTrimming

Gets or sets the text trimming to employ when text overflows the item area.

TextVerticalAlignment

Gets or sets a value that indicates the vertical alignment of text content.

TextWrapping

Gets or sets how this TextPresenter should wrap text.

 Public Methods

  Name Description

CopyFrom

Copies all text attributes from the specified object.

 Protected Methods

  Name Description

LoadTextAttributes

Overloaded.  

OnTextAttributeChanged

Invoked when any of the attributes defined in ITextAttributes changes.

SaveTextAttributes

Overloaded.  

SetDiagramDirty

Invoked when a value is assigned to a property and the diagram's Dirty flag must be set.

 See Also