Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
TextBlock Class
 TextBlock Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
TextBlock Members

Provides a lightweight control for displaying small amounts of flow content.

The TextBlock type exposes the following members.

  NameDescription
ms617597.pubmethod(en-us,VS.90).gifTextBlockOverloaded. Initializes a new instance of the TextBlock class.
Top
  NameDescription
ms617597.pubmethod(en-us,VS.90).gifAddHandlerOverloaded.
ms617597.protmethod(en-us,VS.90).gifAddLogicalChild Adds the provided object to the logical tree of this element. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifAddToEventRoute Adds handlers to the specified EventRoute for the current UIElement event handler collection. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifAddVisualChild Defines the parent-child relationship between two visuals. (Inherited from Visual.)
ms617597.pubmethod(en-us,VS.90).gifApplyAnimationClockOverloaded.
ms617597.pubmethod(en-us,VS.90).gifApplyTemplate Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifArrange Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore implementation (or a WPF framework-level equivalent) to form a recursive layout update. This method constitutes the second pass of a layout update. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifArrangeCore Implements ArrangeCore (defined as virtual in UIElement) and seals the implementation. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifArrangeOverride Positions child elements and determines a size for the TextBlock. (Overrides FrameworkElement..::.ArrangeOverride(Size).)
ms617597.pubmethod(en-us,VS.90).gifBeginAnimationOverloaded.
ms617597.pubmethod(en-us,VS.90).gifBeginInit Starts the initialization process for this element. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifBeginStoryboardOverloaded.
ms617597.pubmethod(en-us,VS.90).gifBringIntoViewOverloaded.
ms617597.pubmethod(en-us,VS.90).gifCaptureMouse Attempts to force capture of the mouse to this element. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifCaptureStylus Attempts to force capture of the stylus to this element. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifCheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
ms617597.pubmethod(en-us,VS.90).gifClearValueOverloaded.
ms617597.pubmethod(en-us,VS.90).gifCoerceValue Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
ms617597.pubmethod(en-us,VS.90).gifEndInit Indicates that the initialization process for the element is complete. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifEquals Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
ms617597.protmethod(en-us,VS.90).gifFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
ms617597.pubmethod(en-us,VS.90).gifFindCommonVisualAncestor Returns the common ancestor of two visual objects. (Inherited from Visual.)
ms617597.pubmethod(en-us,VS.90).gifFindName Finds an element that has the provided identifier name. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifFindResource Searches for a resource with the specified key, and throws an exception if the requested resource is not found. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifFocus Attempts to set focus to this element. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifGetAnimationBaseValue Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetBaselineOffset Returns the value of the BaselineOffset attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifGetBindingExpression Returns the BindingExpression that represents the binding on the specified property. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetFontFamily Returns the value of the FontFamilyProperty attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetFontSize Returns the value of the FontSize attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetFontStretch Returns the value of the FontStretch attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetFontStyle Returns the value of the FontStyle attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetFontWeight Returns the value of the FontWeight attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetForeground Returns the value of the Foreground attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifGetHashCode Gets a hash code for this DependencyObject. (Inherited from DependencyObject.)
ms617597.protmethod(en-us,VS.90).gifGetLayoutClip Returns a geometry for a clipping mask. The mask applies if the layout system attempts to arrange an element that is larger than the available display space. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetLineHeight Returns the value of the LineHeight attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetLineStackingStrategy Returns the value of the LineStackingStrategy attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifGetLocalValueEnumerator Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
ms617597.pubmethod(en-us,VS.90).gifGetPositionFromPoint Returns a TextPointer to the position closest to a specified Point.
ms617597.protmethod(en-us,VS.90).gifGetRectanglesCore Returns a read-only collection of bounding rectangles for a specified ContentElement.
ms617597.protmethod(en-us,VS.90).gifGetTemplateChild Do not use. Use FindName instead. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifms617597.static(en-us,VS.90).gifGetTextAlignment Returns the value of the TextAlignment attached property for a specified dependency object.
ms617597.pubmethod(en-us,VS.90).gifGetType Gets the Type of the current instance. (Inherited from Object.)
ms617597.protmethod(en-us,VS.90).gifGetUIParentCore Returns an alternative logical parent for this element if there is no visual parent. (Inherited from FrameworkElement.)
ms617597.pubmethod(en-us,VS.90).gifGetValue Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
ms617597.protmethod(en-us,VS.90).gifGetVisualChild Returns the Visual child at a specified index. (Overrides FrameworkElement..::.GetVisualChild(Int32).)
ms617597.protmethod(en-us,VS.90).gifHitTestCoreOverloaded. Returns a PointHitTestResult for specified PointHitTestParameters.
ms617597.pubmethod(en-us,VS.90).gifInputHitTest Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifInputHitTestCore Returns the IInputElement at a specified Point within the TextBlock.
ms617597.pubmethod(en-us,VS.90).gifInvalidateArrange Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifInvalidateMeasure Invalidates the measurement state (layout) for the element. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifInvalidateProperty Re-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
ms617597.pubmethod(en-us,VS.90).gifInvalidateVisual Invalidates the rendering of the element, and forces a complete new layout pass. OnRender is called after the layout cycle is completed. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifIsAncestorOf Determines whether the visual object is an ancestor of the descendant visual object. (Inherited from Visual.)
ms617597.pubmethod(en-us,VS.90).gifIsDescendantOf Determines whether the visual object is a descendant of the ancestor visual object. (Inherited from Visual.)
ms617597.pubmethod(en-us,VS.90).gifMeasure Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore implementations to form a recursive layout update. Calling this method constitutes the first pass (the "Measure" pass) of a layout update. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifMeasureCore Implements basic measure-pass layout system behavior for FrameworkElement. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifMeasureOverride Called to re-measure the TextBlock. (Overrides FrameworkElement..::.MeasureOverride(Size).)
ms617597.protmethod(en-us,VS.90).gifMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ms617597.pubmethod(en-us,VS.90).gifMoveFocus Moves the keyboard focus away from this element and to another element in a provided traversal direction. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnAccessKey Provides class handling for when an access key that is meaningful for this element is invoked. (Inherited from UIElement.)
ms617597.pubmethod(en-us,VS.90).gifOnApplyTemplate When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnChildDesiredSizeChanged Supports layout behavior when a child element is resized. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnChildDesiredSizeChangedCore Called when a child element deriving from UIElement changes its DesiredSize.
ms617597.protmethod(en-us,VS.90).gifOnContextMenuClosing Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnContextMenuOpening Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnCreateAutomationPeer Creates and returns an AutomationPeer object for this TextBlock. (Overrides UIElement..::.OnCreateAutomationPeer()()().)
ms617597.protmethod(en-us,VS.90).gifOnDragEnter Invoked when an unhandled DragDrop..::.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnDragLeave Invoked when an unhandled DragDrop..::.DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnDragOver Invoked when an unhandled DragDrop..::.DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnDrop Invoked when an unhandled DragDrop..::.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnGiveFeedback Invoked when an unhandled DragDrop..::.GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnGotFocus Invoked whenever an unhandled GotFocus event reaches this element in its route. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnGotKeyboardFocus Invoked when an unhandled Keyboard..::.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnGotMouseCapture Invoked when an unhandled Mouse..::.GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnGotStylusCapture Invoked when an unhandled Stylus..::.GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gifOnInitialized Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally. (Inherited from FrameworkElement.)
ms617597.protmethod(en-us,VS.90).gifOnIsKeyboardFocusedChanged Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event. (Inherited from UIElement.)
ms617597.protmethod(en-us,VS.90).gif