TextPattern Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 |
FontNameAttribute |
Identifies the |
FontSizeAttribute |
Identifies the |
FontWeightAttribute |
Identifies the |
ForegroundColorAttribute |
Identifies the |
HorizontalTextAlignmentAttribute |
Identifies the HorizontalTextAlignment attribute of a text range. |
IndentationFirstLineAttribute |
Identifies the |
IndentationLeadingAttribute |
Identifies the |
IndentationTrailingAttribute |
Identifies the |
IsHiddenAttribute |
Identifies the |
IsItalicAttribute |
Identifies the |
IsReadOnlyAttribute |
Identifies the |
IsSubscriptAttribute |
Identifies the |
IsSuperscriptAttribute |
Identifies the |
MarginBottomAttribute |
Identifies the |
MarginLeadingAttribute |
Identifies the |
MarginTopAttribute |
Identifies the |
MarginTrailingAttribute |
Identifies the |
MixedAttributeValue |
Identifies whether the value of a given attribute varies over a text range in a rich edit control. |
OutlineStylesAttribute |
Identifies the |
OverlineColorAttribute |
Identifies the |
OverlineStyleAttribute |
Identifies the |
Pattern |
Identifies the TextPattern pattern. |
StrikethroughColorAttribute |
Identifies the |
StrikethroughStyleAttribute |
Identifies the |
TabsAttribute |
Identifies the |
TextChangedEvent |
Identifies the event raised whenever textual content is modified. |
TextFlowDirectionsAttribute |
Identifies the |
TextSelectionChangedEvent |
Identifies the event raised when the text selection is modified. |
UnderlineColorAttribute |
Identifies the |
UnderlineStyleAttribute |
Identifies the |
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
.NET