Block, classe

Bloc Class

Classe abstraite qui fournit une base pour tous les éléments de contenu au niveau du bloc.

Héritage

Object
  DependencyObject
    TextElement
      Block

Syntaxe


public class Block : TextElement

Attributs

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

Membres

BlockClasse possède ces types de membres :

Constructeurs

BlockClasse possède ces constructeurs.

ConstructeurDescription
Block Provides base class initialization behavior for Block derived classes.

 

Méthodes

The Block 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. (Hérité de TextElement)
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. (Hérité de TextElement)
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 BlockClasse 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. (Hérité de TextElement)

ContentEnd

En lecture seuleGets a TextPointer that represents the end of the content in the element. (Hérité de TextElement)

ContentStart

En lecture seuleGets a TextPointer that represents the start of content in the element. (Hérité de TextElement)

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. (Hérité de TextElement)

ElementStart

En lecture seuleGets a TextPointer that represents the position just before the start of the element. (Hérité de TextElement)

FontFamily

Lecture/écritureGets or sets the preferred top-level font family for the content of the element. (Hérité de TextElement)

FontSize

Lecture/écritureGets or sets the font size for the content of the element. (Hérité de TextElement)

FontStretch

Lecture/écritureGets or sets the glyph width of the font in a family to select. (Hérité de TextElement)

FontStyle

Lecture/écritureGets or sets the font style for the content in this element. (Hérité de TextElement)

FontWeight

Lecture/écritureGets or sets the top-level font weight to select from the font family for the content in this element. (Hérité de TextElement)

Foreground

Lecture/écritureGets or sets the Brush to apply to the content in this element. (Hérité de TextElement)

Language

Lecture/écritureGets or sets localization/globalization language information that applies to a TextElement. (Hérité de TextElement)

LineHeight

Lecture/écritureGets or sets the height of each line of content.

LineHeightProperty

En lecture seuleIdentifies the LineHeight dependency property.

LineStackingStrategy

Lecture/écritureGets or sets a value that indicates how a line box is determined for each line of text in the Block.

LineStackingStrategyProperty

En lecture seuleIdentifies the LineStackingStrategy dependency property.

Margin

Lecture/écritureGets or sets the amount of space around a Block element.

MarginProperty

En lecture seuleIdentifies the Margin dependency property.

Name

En lecture seuleGets or sets a unique identification for the object. Name can only be set from initial parsing of XAML. (Hérité de TextElement)

TextAlignment

Lecture/écritureGets or sets the horizontal alignment of the text content.

TextAlignmentProperty

En lecture seuleIdentifies the TextAlignment dependency property.

 

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

TextElement

 

 

Afficher:
© 2017 Microsoft