This documentation is archived and is not being maintained.
TextPattern Class
Visual Studio 2010
Represents controls that contain text.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
The TextPattern type exposes the following members.
| 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 a hash function for a particular type. (Inherited from Object.) |
![]() | GetSelection | Retrieves a collection of disjoint text ranges associated with the current text selection or selections. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | 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 | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RangeFromChild | Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft Excel spreadsheet, or other embedded object. |
![]() | RangeFromPoint | 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
