TextPattern Class
Represents controls that contain text.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
| Name | Description | |
|---|---|---|
![]() | DocumentRange | Gets a text range that encloses the main text of a document. |
![]() | SupportedTextSelection | Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Frees resources and performs other cleanup operations before the object is reclaimed by garbage collection.(Inherited from BasePattern.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetSelection() | Retrieves a collection of disjoint text ranges associated with the current text selection or selections. |
![]() | GetType() | |
![]() | GetVisibleRanges() | Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line. |
![]() | MemberwiseClone() | |
![]() | RangeFromChild(AutomationElement) | Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft Excel spreadsheet, or other embedded object. |
![]() | RangeFromPoint(Point) | Returns the degenerate (empty) text range nearest to the specified screen coordinates. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | AnimationStyleAttribute | Identifies the AnimationStyle attribute of a text range. |
![]() ![]() | BackgroundColorAttribute | Identifies the BackgroundColor attribute of a text range. |
![]() ![]() | BulletStyleAttribute | Identifies the BulletStyle attribute of a text range. |
![]() ![]() | CapStyleAttribute | Identifies the CapStyle attribute of a text range. |
![]() ![]() | CultureAttribute | Identifies the Culture (CultureInfo) attribute of a text range down to the sub-language level; for example, French–Switzerland (fr-CH) instead of French (fr). |
![]() ![]() | FontNameAttribute | Identifies the FontName attribute of a text range. |
![]() ![]() | FontSizeAttribute | Identifies the FontSize attribute of a text range. |
![]() ![]() | FontWeightAttribute | Identifies the FontWeight attribute of a text range. |
![]() ![]() | ForegroundColorAttribute | Identifies the ForegroundColor (COLORREF) attribute of a text range. |
![]() ![]() | HorizontalTextAlignmentAttribute | Identifies the HorizontalTextAlignment attribute of a text range. |
![]() ![]() | IndentationFirstLineAttribute | Identifies the IndentationFirstLine (TextIndent) attribute of a text range. |
![]() ![]() | IndentationLeadingAttribute | Identifies the IndentationLeading(TextIndent) attribute of a text range. |
![]() ![]() | IndentationTrailingAttribute | Identifies the IndentationTrailing(TextIndent) attribute of a text range. |
![]() ![]() | IsHiddenAttribute | Identifies the IsHidden attribute of a text range. |
![]() ![]() | IsItalicAttribute | Identifies the IsItalic (FontStyle) attribute of a text range. |
![]() ![]() | IsReadOnlyAttribute | Identifies the IsReadOnly attribute of a text range. |
![]() ![]() | IsSubscriptAttribute | Identifies the IsSubscript (FontVariants) attribute of a text range. |
![]() ![]() | IsSuperscriptAttribute | Identifies the IsSuperscript (FontVariants) attribute of a text range. |
![]() ![]() | MarginBottomAttribute | Identifies the MarginBottom (PageSettings) attribute of a text range. |
![]() ![]() | MarginLeadingAttribute | Identifies the MarginLeading (PageSettings) attribute of a text range. |
![]() ![]() | MarginTopAttribute | Identifies the MarginTop (PageSettings) attribute of a text range. |
![]() ![]() | MarginTrailingAttribute | Identifies the MarginTrailing (PageSettings) attribute of a text range. |
![]() ![]() | MixedAttributeValue | Identifies whether the value of a given attribute varies over a text range in a rich edit control. |
![]() ![]() | OutlineStylesAttribute | Identifies the OutlineStyles (OutlineStyles) attribute of a text range. |
![]() ![]() | OverlineColorAttribute | Identifies the OverlineColor attribute of a text range. |
![]() ![]() | OverlineStyleAttribute | Identifies the OverlineStyle (TextDecorationLineStyle) attribute of a text range. |
![]() ![]() | Pattern | Identifies the TextPattern pattern. |
![]() ![]() | StrikethroughColorAttribute | Identifies the StrikethroughColor attribute of a text range. |
![]() ![]() | StrikethroughStyleAttribute | Identifies the StrikethroughStyle (TextDecorationLineStyle) attribute of a text range. |
![]() ![]() | TabsAttribute | Identifies the Tabs attribute of a text range. |
![]() ![]() | TextChangedEvent | Identifies the event raised whenever textual content is modified. |
![]() ![]() | TextFlowDirectionsAttribute | Identifies the TextFlowDirections (FlowDirections) attribute of a text range. |
![]() ![]() | TextSelectionChangedEvent | Identifies the event raised when the text selection is modified. |
![]() ![]() | UnderlineColorAttribute | Identifies the UnderlineColor attribute of a text range. |
![]() ![]() | UnderlineStyleAttribute | Identifies the UnderlineStyle (TextDecorationLineStyle) attribute of a text range. |
The TextPattern class may not provide for text features that exist only in a particular UI Automation provider. For these unique and often advanced features, the AutomationElement class provides methods for a UI Automation client to access the corresponding native object model.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




