TextElement Class

Classe abstraite utilisée comme classe de base pour les Block abstraits et les classes Inline.

Héritage

Object
  DependencyObject
    TextElement

Syntaxe


public class TextElement : DependencyObject

Attributs

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Membres

TextElementClasse possède ces types de membres :

Méthodes

The TextElement Classe a les méthodes suivantes. Elle hérite également des méthodes de Object Classe.

MéthodeDescription
ClearValue Clears the local value of a dependency property. (Hérité de DependencyObject)
FindName Retrieves an object in the object model / runtime object graph by referencing the object's x:Name or Name attribute value.
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Hérité de DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Hérité de DependencyObject)
OnDisconnectVisualChildren Override this method to implement how layout and logic should behave when items are removed from a class-specific content or child property.
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Hérité de DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Hérité de DependencyObject)

 

Propriétés

Le TextElementClasse a les propriétés suivantes.

PropriétéType d'accèsDescription

CharacterSpacing

Lecture/écritureGets or sets the uniform spacing between characters, in units of 1/1000 of an em.

CharacterSpacingProperty

En lecture seuleIdentifies the CharacterSpacing dependency property.

ContentEnd

En lecture seuleGets a TextPointer that represents the end of the content in the element.

ContentStart

En lecture seuleGets a TextPointer that represents the start of content in the element.

Dispatcher

En lecture seuleGets the CoreDispatcher that this object is associated with. (Hérité de DependencyObject)

ElementEnd

En lecture seuleGets a TextPointer that represents the position just after the end of the element.

ElementStart

En lecture seuleGets a TextPointer that represents the position just before the start of the element.

FontFamily

Lecture/écritureGets or sets the preferred top-level font family for the content of the element.

FontFamilyProperty

En lecture seuleIdentifies the FontFamily dependency property.

FontSize

Lecture/écritureGets or sets the font size for the content of the element.

FontSizeProperty

En lecture seuleIdentifies the FontSize dependency property.

FontStretch

Lecture/écritureGets or sets the glyph width of the font in a family to select.

FontStretchProperty

En lecture seuleIdentifies the FontStretch dependency property.

FontStyle

Lecture/écritureGets or sets the font style for the content in this element.

FontStyleProperty

En lecture seuleIdentifies the FontStyle dependency property.

FontWeight

Lecture/écritureGets or sets the top-level font weight to select from the font family for the content in this element.

FontWeightProperty

En lecture seuleIdentifies the FontWeight dependency property.

Foreground

Lecture/écritureGets or sets the Brush to apply to the content in this element.

ForegroundProperty

En lecture seuleIdentifies the Foreground dependency property.

Language

Lecture/écritureGets or sets localization/globalization language information that applies to a TextElement.

LanguageProperty

En lecture seuleIdentifies the Language dependency property.

Name

En lecture seuleGets or sets a unique identification for the object. Name can only be set from initial parsing of XAML.

 

Conditions requises

Client minimal pris en charge

Windows 8 [Applications Windows Store uniquement]

Serveur minimal pris en charge

Windows Server 2012 [Applications Windows Store uniquement]

Espace de noms

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Métadonnées

Windows.winmd

Voir aussi

DependencyObject

 

 

Afficher:
© 2014 Microsoft