ClassTextBlock
Wraps a TextBlock element.
Definition
Namespace:ArtOfTest.WebAii.Silverlight.UI
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class TextBlock : SilverlightTestElement, IAutomationPeer, IPeerConverter, ITextBlock, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementTextBlock
Implements:
Inherited Members
Constructors
TextBlock()
Declaration
public TextBlock()
Fields
FontFamilyProperty
Declaration
public static AutomationProperty FontFamilyProperty
Field Value
FontSizeProperty
Declaration
public static AutomationProperty FontSizeProperty
Field Value
FontStretchProperty
Declaration
public static AutomationProperty FontStretchProperty
Field Value
FontStyleProperty
Declaration
public static AutomationProperty FontStyleProperty
Field Value
FontWeightProperty
Declaration
public static AutomationProperty FontWeightProperty
Field Value
ForegroundProperty
Declaration
public static AutomationProperty ForegroundProperty
Field Value
InlinesProperty
Object for accessing inlines property.
Declaration
public static AutomationProperty InlinesProperty
Field Value
LineHeightProperty
Declaration
public static AutomationProperty LineHeightProperty
Field Value
LineStackingStrategyProperty
Declaration
public static AutomationProperty LineStackingStrategyProperty
Field Value
PaddingProperty
Declaration
public static AutomationProperty PaddingProperty
Field Value
TextAlignmentProperty
Declaration
public static AutomationProperty TextAlignmentProperty
Field Value
TextProperty
Declaration
public static AutomationProperty TextProperty
Field Value
TextTrimmingProperty
Declaration
public static AutomationProperty TextTrimmingProperty
Field Value
TextWrappingProperty
Declaration
public static AutomationProperty TextWrappingProperty
Field Value
Properties
DisplayedText
Gets displayed text of the TextBlock. Depending how control is configured, displayed text might be the value of Text property, data bound value or combination of inline elements.
Inlines
Declaration
public InlineCollection Inlines { get; }
Property Value
LineStackingStrategy
Declaration
public LineStackingStrategy LineStackingStrategy { get; set; }
Property Value
Text
Get/set the text of the TextBlock.
TextAlignment
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
TextTrimming
Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
TextWrapping
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
Methods
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.