TextPattern Class
TOC
Collapse the table of content
Expand the table of content

TextPattern Class

 

Represents controls that contain text.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

System.Object
  System.Windows.Automation.BasePattern
    System.Windows.Automation.TextPattern

public class TextPattern : BasePattern

NameDescription
System_CAPS_pubpropertyDocumentRange

Gets a text range that encloses the main text of a document.

System_CAPS_pubpropertySupportedTextSelection

Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Frees resources and performs other cleanup operations before the object is reclaimed by garbage collection.(Inherited from BasePattern.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSelection()

Retrieves a collection of disjoint text ranges associated with the current text selection or selections.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetVisibleRanges()

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.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRangeFromChild(AutomationElement)

Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft Excel spreadsheet, or other embedded object. 

System_CAPS_pubmethodRangeFromPoint(Point)

Returns the degenerate (empty) text range nearest to the specified screen coordinates.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAnimationStyleAttribute

Identifies the AnimationStyle attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticBackgroundColorAttribute

Identifies the BackgroundColor attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticBulletStyleAttribute

Identifies the BulletStyle attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticCapStyleAttribute

Identifies the CapStyle attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticCultureAttribute

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).

System_CAPS_pubfieldSystem_CAPS_staticFontNameAttribute

Identifies the FontName attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticFontSizeAttribute

Identifies the FontSize attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticFontWeightAttribute

Identifies the FontWeight attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticForegroundColorAttribute

Identifies the ForegroundColor (COLORREF) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticHorizontalTextAlignmentAttribute

Identifies the HorizontalTextAlignment attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIndentationFirstLineAttribute

Identifies the IndentationFirstLine (TextIndent) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIndentationLeadingAttribute

Identifies the IndentationLeading(TextIndent) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIndentationTrailingAttribute

Identifies the IndentationTrailing(TextIndent) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIsHiddenAttribute

Identifies the IsHidden attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIsItalicAttribute

Identifies the IsItalic (FontStyle) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIsReadOnlyAttribute

Identifies the IsReadOnly attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIsSubscriptAttribute

Identifies the IsSubscript (FontVariants) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticIsSuperscriptAttribute

Identifies the IsSuperscript (FontVariants) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticMarginBottomAttribute

Identifies the MarginBottom (PageSettings) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticMarginLeadingAttribute

Identifies the MarginLeading (PageSettings) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticMarginTopAttribute

Identifies the MarginTop (PageSettings) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticMarginTrailingAttribute

Identifies the MarginTrailing (PageSettings) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticMixedAttributeValue

Identifies whether the value of a given attribute varies over a text range in a rich edit control.

System_CAPS_pubfieldSystem_CAPS_staticOutlineStylesAttribute

Identifies the OutlineStyles (OutlineStyles) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticOverlineColorAttribute

Identifies the OverlineColor attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticOverlineStyleAttribute

Identifies the OverlineStyle (TextDecorationLineStyle) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticPattern

Identifies the TextPattern pattern.

System_CAPS_pubfieldSystem_CAPS_staticStrikethroughColorAttribute

Identifies the StrikethroughColor attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticStrikethroughStyleAttribute

Identifies the StrikethroughStyle (TextDecorationLineStyle) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticTabsAttribute

Identifies the Tabs attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticTextChangedEvent

Identifies the event raised whenever textual content is modified.

System_CAPS_pubfieldSystem_CAPS_staticTextFlowDirectionsAttribute

Identifies the TextFlowDirections (FlowDirections) attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticTextSelectionChangedEvent

Identifies the event raised when the text selection is modified.

System_CAPS_pubfieldSystem_CAPS_staticUnderlineColorAttribute

Identifies the UnderlineColor attribute of a text range.

System_CAPS_pubfieldSystem_CAPS_staticUnderlineStyleAttribute

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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft