TextPattern Klass

Definition

Representerar kontroller som innehåller 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
Arv
TextPattern

Kommentarer

Klassen TextPattern kanske inte innehåller textfunktioner som bara finns i en viss UI Automation provider. För dessa unika och ofta avancerade funktioner tillhandahåller klassen AutomationElement metoder för en UI Automation-klient för att få åtkomst till motsvarande interna objektmodell.

Fält

Name Description
AnimationStyleAttribute

Identifierar attributet för AnimationStyle ett textintervall.

BackgroundColorAttribute

Identifierar attributet BackgroundColor för ett textintervall.

BulletStyleAttribute

Identifierar attributet för BulletStyle ett textintervall.

CapStyleAttribute

Identifierar attributet för CapStyle ett textintervall.

CultureAttribute

Identifierar Culture attributet (CultureInfo) för ett textintervall ned till underspråksnivå, till exempel French-Switzerland (fr-CH) i stället för franska (fr).

FontNameAttribute

Identifierar attributet för FontName ett textintervall.

FontSizeAttribute

Identifierar attributet för FontSize ett textintervall.

FontWeightAttribute

Identifierar attributet för FontWeight ett textintervall.

ForegroundColorAttribute

Identifierar ForegroundColor attributet (COLORREF) för ett textintervall.

HorizontalTextAlignmentAttribute

Identifierar attributet för HorizontalTextAlignment ett textintervall.

IndentationFirstLineAttribute

Identifierar IndentationFirstLine attributet (TextIndent) för ett textintervall.

IndentationLeadingAttribute

Identifierar IndentationLeadingattributet (TextIndent) för ett textintervall.

IndentationTrailingAttribute

Identifierar IndentationTrailingattributet (TextIndent) för ett textintervall.

IsHiddenAttribute

Identifierar attributet för IsHidden ett textintervall.

IsItalicAttribute

Identifierar IsItalic attributet (FontStyle) för ett textintervall.

IsReadOnlyAttribute

Identifierar attributet för IsReadOnly ett textintervall.

IsSubscriptAttribute

Identifierar IsSubscript attributet (FontVariants) för ett textintervall.

IsSuperscriptAttribute

Identifierar IsSuperscript attributet (FontVariants) för ett textintervall.

MarginBottomAttribute

Identifierar MarginBottom attributet (PageSettings) för ett textintervall.

MarginLeadingAttribute

Identifierar MarginLeading attributet (PageSettings) för ett textintervall.

MarginTopAttribute

Identifierar MarginTop attributet (PageSettings) för ett textintervall.

MarginTrailingAttribute

Identifierar MarginTrailing attributet (PageSettings) för ett textintervall.

MixedAttributeValue

Identifierar om värdet för ett visst attribut varierar över ett textintervall i en rtF-redigeringskontroll.

OutlineStylesAttribute

Identifierar OutlineStyles attributet (OutlineStyles) för ett textintervall.

OverlineColorAttribute

Identifierar attributet för OverlineColor ett textintervall.

OverlineStyleAttribute

Identifierar OverlineStyle attributet (TextDecorationLineStyle) för ett textintervall.

Pattern

Identifierar TextPattern mönstret.

StrikethroughColorAttribute

Identifierar attributet för StrikethroughColor ett textintervall.

StrikethroughStyleAttribute

Identifierar StrikethroughStyle attributet (TextDecorationLineStyle) för ett textintervall.

TabsAttribute

Identifierar attributet för Tabs ett textintervall.

TextChangedEvent

Identifierar händelsen som genereras när textinnehåll ändras.

TextFlowDirectionsAttribute

Identifierar TextFlowDirections attributet (FlowDirections) för ett textintervall.

TextSelectionChangedEvent

Identifierar händelsen som utlöses när textmarkeringen ändras.

UnderlineColorAttribute

Identifierar attributet för UnderlineColor ett textintervall.

UnderlineStyleAttribute

Identifierar UnderlineStyle attributet (TextDecorationLineStyle) för ett textintervall.

Egenskaper

Name Description
DocumentRange

Hämtar ett textintervall som omger huvudtexten i ett dokument.

SupportedTextSelection

Hämtar ett värde som anger om en textprovider stöder markering och i så fall vilken typ av markering som stöds.

Metoder

Name Description
Equals(Object)

Avgör om det angivna objektet är lika med det aktuella objektet.

(Ärvd från Object)
GetHashCode()

Fungerar som standard-hash-funktion.

(Ärvd från Object)
GetSelection()

Hämtar en samling av olika textintervall som är associerade med den aktuella textmarkeringen eller markeringen.

GetType()

Hämtar den aktuella instansen Type .

(Ärvd från Object)
GetVisibleRanges()

Hämtar en matris med olika textintervall från en textcontainer där varje textintervall börjar med den första delvis synliga raden till slutet av den sista delvis synliga raden.

MemberwiseClone()

Skapar en ytlig kopia av den aktuella Object.

(Ärvd från Object)
RangeFromChild(AutomationElement)

Hämtar ett textintervall som omsluter ett underordnat element, till exempel en bild, hyperlänk, Microsoft Excel kalkylblad eller annat inbäddat objekt.

RangeFromPoint(Point)

Returnerar det degenererade (tomma) textområdet närmast de angivna skärmkoordinaterna.

ToString()

Returnerar en sträng som representerar det aktuella objektet.

(Ärvd från Object)

Gäller för

Se även