TextPattern Class

Definition

Represents controls that contain text.

public ref class TextPattern : System::Windows::Automation::BasePattern
public class TextPattern : System.Windows.Automation.BasePattern
type TextPattern = class
    inherit BasePattern
Public Class TextPattern
Inherits BasePattern
Inheritance
TextPattern

Remarks

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.

Fields

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.

Properties

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.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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()

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

Applies to

See also