TextPattern Classe
Définition
Représente des contrôles qui contiennent du texte.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
- Héritage
Remarques
La TextPattern classe ne peut pas fournir des fonctionnalités de texte qui existent uniquement dans un fournisseur UI Automation particulier.The TextPattern class may not provide for text features that exist only in a particular UI Automation provider. Pour ces fonctionnalités uniques et souvent avancées, la AutomationElement classe fournit des méthodes permettant à un client UI Automation d’accéder au modèle objet natif correspondant.For these unique and often advanced features, the AutomationElement class provides methods for a UI Automation client to access the corresponding native object model.
Champs
AnimationStyleAttribute |
Identifie l'attribut AnimationStyle d'une plage de texte.Identifies the AnimationStyle attribute of a text range. |
BackgroundColorAttribute |
Identifie l’attribut BackgroundColor d’une plage de texte.Identifies the BackgroundColor attribute of a text range. |
BulletStyleAttribute |
Identifie l'attribut BulletStyle d'une plage de texte.Identifies the BulletStyle attribute of a text range. |
CapStyleAttribute |
Identifie l'attribut CapStyle d'une plage de texte.Identifies the CapStyle attribute of a text range. |
CultureAttribute |
Identifie l’attribut |
FontNameAttribute |
Identifie l'attribut |
FontSizeAttribute |
Identifie l'attribut |
FontWeightAttribute |
Identifie l'attribut |
ForegroundColorAttribute |
Identifie l’attribut |
HorizontalTextAlignmentAttribute |
Identifie l'attribut HorizontalTextAlignment d'une plage de texte.Identifies the HorizontalTextAlignment attribute of a text range. |
IndentationFirstLineAttribute |
Identifie l'attribut |
IndentationLeadingAttribute |
Identifie l'attribut |
IndentationTrailingAttribute |
Identifie l'attribut |
IsHiddenAttribute |
Identifie l'attribut |
IsItalicAttribute |
Identifie l'attribut |
IsReadOnlyAttribute |
Identifie l'attribut |
IsSubscriptAttribute |
Identifie l'attribut |
IsSuperscriptAttribute |
Identifie l'attribut |
MarginBottomAttribute |
Identifie l'attribut |
MarginLeadingAttribute |
Identifie l'attribut |
MarginTopAttribute |
Identifie l'attribut |
MarginTrailingAttribute |
Identifie l'attribut |
MixedAttributeValue |
Identifie si la valeur d'un attribut donné varie sur une plage de texte dans un contrôle RichEdit.Identifies whether the value of a given attribute varies over a text range in a rich edit control. |
OutlineStylesAttribute |
Identifie l'attribut |
OverlineColorAttribute |
Identifie l'attribut |
OverlineStyleAttribute |
Identifie l'attribut |
Pattern |
Identifie le modèle TextPattern.Identifies the TextPattern pattern. |
StrikethroughColorAttribute |
Identifie l'attribut |
StrikethroughStyleAttribute |
Identifie l'attribut |
TabsAttribute |
Identifie l'attribut |
TextChangedEvent |
Identifie l'événement déclenché chaque fois que le contenu textuel est modifié.Identifies the event raised whenever textual content is modified. |
TextFlowDirectionsAttribute |
Identifie l'attribut |
TextSelectionChangedEvent |
Identifie l'événement déclenché lorsque la sélection de texte est modifiée.Identifies the event raised when the text selection is modified. |
UnderlineColorAttribute |
Identifie l'attribut |
UnderlineStyleAttribute |
Identifie l'attribut |
Propriétés
DocumentRange |
Obtient une plage de texte qui englobe le texte principal d'un document.Gets a text range that encloses the main text of a document. |
SupportedTextSelection |
Obtient une valeur qui spécifie si un fournisseur de texte prend en charge la sélection et, si c'est le cas, le type de sélection pris en charge.Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported. |
Méthodes
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel.Determines whether the specified object is equal to the current object. (Hérité de Object) |
GetHashCode() |
Fait office de fonction de hachage par défaut.Serves as the default hash function. (Hérité de Object) |
GetSelection() |
Récupère une collection de plages de texte disjointes associées à la sélection ou aux sélections de texte actuelles.Retrieves a collection of disjoint text ranges associated with the current text selection or selections. |
GetType() |
Obtient le Type de l'instance actuelle.Gets the Type of the current instance. (Hérité de Object) |
GetVisibleRanges() |
Récupère un tableau de plages de texte disjointes à partir d'un conteneur de texte où chaque plage de texte commence à la première ligne partiellement visible et se termine à la dernière ligne partiellement visible.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() |
Crée une copie superficielle du Object actuel.Creates a shallow copy of the current Object. (Hérité de Object) |
RangeFromChild(AutomationElement) |
Récupère une plage de texte englobant un élément enfant tel qu'une image, un lien hypertexte, une feuille de calcul Microsoft ExcelMicrosoft Excel ou un autre objet incorporé.Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft ExcelMicrosoft Excel spreadsheet, or other embedded object. |
RangeFromPoint(Point) |
Retourne la plage de texte dégénérée (vide) la plus proche des coordonnées d'écran spécifiées.Returns the degenerate (empty) text range nearest to the specified screen coordinates. |
ToString() |
Retourne une chaîne qui représente l'objet actuel.Returns a string that represents the current object. (Hérité de Object) |